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
}
Pool provides a set of workers for executing functions
func NewPool ¶
NewPool creates a pool with the specified number of workers. The pool will not begin accepting jobs until Start() is called.
func (*Pool) Complete ¶
func (p *Pool) Complete() <-chan struct{}
Complete returns a channel that will be closed when all workers have finished
Click to show internal directories.
Click to hide internal directories.