Package Usage: go: 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
1 version
Latest release: almost 7 years ago
145 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/nozzle/throttler