Ecosyste.ms: Packages

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

Top 3.7% on proxy.golang.org
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: over 1 year ago
First release: about 3 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: 120,999,948
See more repository details: repos.ecosyste.ms
Last synced: about 24 hours ago

    Loading...
    Readme
    Loading...