package
Version:
v4.1.16
Opens a new window with list of versions in this module.
Published: Apr 3, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Pool is a basic work pool - I didn't like any
of the ones I found, so I made one.
func NewPool(routines int, job func(input interface{})) *Pool
NewPool creates a new worker pool with a goroutine limit
and a job function to execute on the incoming data.
Wait waits until the pool is finished.
func (p *Pool) Work(c <-chan interface{})
Work is a blocking call that starts the
pool working on a data input channel.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.