An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/dc0d/workerpool

Package workerpool provides a workerpool. It also can expand and shrink dynamically. Jobs can be queued using the Queue() method which also accepts a timeout parameter for timing out queuing and if all workers are too busy. For expanding the queue, Expand() method can be used, which increases the number of workers. If a timeout is provided, these extra workers will stop, if there are not enough jobs to do. It is also possible to explicitly stop extra workers by providing a quit channel.

Ecosystem
proxy.golang.org
Latest Release
v3.0.3+incompatible
over 7 years ago
Versions
6
Dependent Packages
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/dc0d/workerpool
spec
License MIT
Namespace github.com/dc0d
First Release over 5 years ago
Last Synced 7 days ago
Repository
Stars 55 on GitHub
Forks 5 on GitHub
Rankings on proxy.golang.org
Overall Top 5.5%
Dependent packages Top 4.6%
Forks Top 4.7%