Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func New ¶
New create a new goroutine pool. The pool size is n, means that it will keep at most n goroutines in the pool. The dur parameter controls the idle recycle behaviour. If the goroutine in the pool is idle for a while, it will be recycled.
Click to show internal directories.
Click to hide internal directories.