Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PoolForStrictConcurrency = PoolPerformanceOption(1) PoolForPerformance = PoolPerformanceOption(2) )
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
New func() interface{}
Finalize func(interface{})
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(cap int, opt PoolPerformanceOption) *Pool
type PoolPerformanceOption ¶
type PoolPerformanceOption int
type WaitGroup ¶
func (*WaitGroup) NumWaiting ¶
Click to show internal directories.
Click to hide internal directories.