package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Mar 20, 2023
License: MIT
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 to execute Worker tasks
New creates a new work pool
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 work pool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.