Top 0.4% dependent packages on proxy.golang.org
Top 0.4% dependent repos on proxy.golang.org
Top 7.1% forks on proxy.golang.org
Top 1.5% docker downloads on proxy.golang.org
proxy.golang.org : github.com/nozzle/throttler
Package throttler fills the gap between sync.WaitGroup and manually monitoring your goroutines with channels. The API is almost identical to Wait Groups, but it allows you to set a max number of workers that can be running simultaneously. It uses channels internally to block until a job completes by calling Done(err) or until all jobs have been completed. After exiting the loop where you are using Throttler, you can call the `Err` or `Errs` method to check for errors. `Err` will return a single error representative of all the errors Throttler caught. The `Errs` method will return all the errors as a slice of errors (`[]error`). Compare the Throttler example to the sync.WaitGroup example http://golang.org/pkg/sync/#example_WaitGroup See a fully functional example on the playground at http://bit.ly/throttler-v3
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/nozzle/throttler
License: Apache-2.0
Latest release: almost 7 years ago
First release: almost 7 years ago
Namespace: github.com/nozzle
Dependent packages: 145
Dependent repositories: 313
Stars: 167 on GitHub
Forks: 8 on GitHub
Docker dependents: 51
Docker downloads: 3,878,744
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago