workerpool
Get the package using:
$ go get -u -v -tags v3 github.com/dc0d/workerpool
- No longer uses the
context.Context
pattern, - Channels removed from the API and replaced by simple function calls,
Previous version:
$ go get -u -v gopkg.in/dc0d/workerpool.v2
This is an implementation of a workerpool which can get expanded & shrink dynamically. Workers can get added when needed and get dismissed when no longer are needed. Of-course this workerpool can be used just as a simple one with a fixed size.
Examples can be seen inside documents.