//
pkg.gl
Category
github.com/abcxyz/pkg
workerpool
package
1.1.4
Repository:
https://github.com/abcxyz/pkg.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
7
Dependents
15
Files
143 SLOC
#
Functions
New
New creates a new worker pool that executes work in parallel, up to the maximum provided concurrency.
#
Variables
ErrStopped
ErrStopped is the error returned when the worker is stopped.
#
Structs
Config
Config represents the input configuration to the worker.
Pool
Pool represents an instance of a worker pool.
Result
Result is the final result returned to the caller.
Void
Void is a convenience struct for workers that do not actually return values.
#
Type aliases
WorkFunc
WorkFunc is a function for executing work.