Skip to content

Releases: nozzle/throttler

1.1

17 Aug 01:17
Compare
Choose a tag to compare
  • Fixed a couple potential data races
  • Use sync/atomic for safer lock-free access
  • Added SetMaxWorkers to allow for dynamic resizing of worker pool

1.0

20 Aug 20:02
Compare
Choose a tag to compare
1.0

Includes a new batched throttler

Has seen constant use for > 1 year - battle tested and reliable

Change How Errors are Returned

13 Mar 17:26
Compare
Choose a tag to compare

Err() now returns an error. To get the slice of errors caught by Throttler, use Errs().

Added an error channel

13 Mar 17:04
Compare
Choose a tag to compare

Throttler handles errors by default now and Done requires an error to be passed into it. If your goroutine doesn't generate errors, just call Done(nil) and there won't be any performance impact.

Initial release

13 Mar 16:59
Compare
Choose a tag to compare
v0.1

Replaced doneChan chan bool with chan struct{}