A workerpool that can get expanded & shrink dynamically.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
workerpool.go
workerpool_usage_test.go

README.md

workerpool

License MIT GoDoc Go Report Card Build Status codecov

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.