Releases: alitto/pond
Releases · alitto/pond
Release 1.7.2
Changes included
- Moved benchmarks to a separate repository https://github.com/alitto/pond-benchmark
- Set up CodeQL action
Release 1.7.1
Changes included
- Prevent "send on closed channel" panic in purger goroutine (#27)
- Ensure all concurrent calls to
StopAndWait()
do block until all workers have stopped - Simplify logic in
submit
function
Release 1.7.0
Changes included
- Added option to specify a parent context on a pool (
pond.Context(parentCtx context.Context)
) - Added method to stop the pool and wait until a given deadline is reached (
StopAndWaitFor(deadline time.Duration)
- Migrated from Travis CI to Github Actions
- Fixed typos in comments
- Added a few sections to the Readme file
Release 1.6.1
Changes included:
- Improve handling of tasks submitted to a stopped pool
- Sending a task using
Submit()
will panic withErrSubmitOnStoppedPool
if the pool has been stopped. - Sending a task using
TrySubmit()
will returnfalse
if the pool has been stopped.
- Sending a task using
- Update dependencies in benchmark package
Release 1.6.0
Changes included:
- Upgrade version of go to 1.17
- Fix flaky test
Release 1.5.1
Changes included:
- Prevent
waitingTasks
counter to wrap around (fixes #12) - Upgrade version of go to 1.16
Release 1.5.0
Changelog
- Expose comprehensive metrics through worker pool instances
- Add getters for all pool configuration options (max capacity, min and max workers and strategy)
- Upgrade golang runtime to 1.15
- Fix issue in
TrySubmit()
that caused tasks not to be queued when using a buffered pool and its max number of workers had been reached.
Release 1.4.0
- Fix issue with resizing strategies not being thread-safe
- Simplify resizing strategies
- Several performance improvements
- Add
TrySubmit(task func()) bool
method to allow submitting a task in a non-blocking manner - Enhance benchmarks to simulate more workload scenarios and different types of tasks (sync/async)
Release 1.3.0
Changes include:
- Add ability to configure pool resizing strategy (#3)
- 3 preset resizing strategies: Eager, Balanced and Lazy.
- Improve benchmarks
- Export interface to define custom resizing strategies
pond.ResizingStrategy
Release 1.2.0
v1.2.0 Prevent data race in purger