pool

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanPool

type ChanPool struct {
	Size int //Size pool size

	New func() interface{} //New create object for pool
	sync.Mutex
	// contains filtered or unexported fields
}

ChanPool pool object

func (*ChanPool) Get

func (p *ChanPool) Get() interface{}

Get get object from pool

func (*ChanPool) Put

func (p *ChanPool) Put(x interface{})

Put put object to pool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL