package
Version:
v1.1.0-rc1
Opens a new window with list of versions in this module.
Published: Jul 9, 2020
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 provides a pool of goroutines that can execute any Worker tasks
that are submitted
Run submits work to the pool
func (p *Pool) Shutdown()
Shutdown waits for all the goroutines to shutdown.
type Worker interface {
Task()
}
Worker must be implemented by types that want to use the worker pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.