Top 1.3% dependent packages on proxy.golang.org
Top 0.5% dependent repos on proxy.golang.org
Top 7.8% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org
proxy.golang.org : github.com/cilium/workerpool
Package workerpool implements a concurrency limiting worker pool. Worker routines are spawned on demand as tasks are submitted; up to the configured limit of concurrent workers. When the limit of concurrently running workers is reached, submitting a task blocks until a worker is able to pick it up. This behavior is intentional as it prevents from accumulating tasks which could grow unbounded. Therefore, it is the responsibility of the caller to queue up tasks if that's the intended behavior. One caveat is that while the number of concurrently running workers is limited, task results are not and they accumulate until they are collected. Therefore, if a large number of tasks can be expected, the workerpool should be periodically drained (e.g. every 10k tasks).
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/cilium/workerpool
License: Apache-2.0
Latest release: 3 months ago
First release: about 4 years ago
Namespace: github.com/cilium
Dependent packages: 23
Dependent repositories: 131
Stars: 17 on GitHub
Forks: 6 on GitHub
Docker dependents: 44
Docker downloads: 121,000,321
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago