package
Version:
v0.0.0-...-bcfd2cf
Opens a new window with list of versions in this module.
Published: Mar 10, 2023
License: GPL-3.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
¶
Task provides a pool of goroutines that can execute any Worker
tasks that are submitted.
New creates a new work pool.
instanced with singleton pattern beacuse used centrally as worker pool based on
CPU resources
Do submits work to the pool.
Shutdown waits for all the goroutines to shutdown.
type Worker interface {
Work() error
}
Worker must be implemented by types that want to use
the run pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.