Skip to content

Releases: alitto/pond

Release 1.7.2

10 Apr 13:03
d4c09d4
Compare
Choose a tag to compare
Release 1.7.2 Pre-release
Pre-release

Changes included

Release 1.7.1

12 Mar 20:47
286125e
Compare
Choose a tag to compare

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

02 Jan 14:57
Compare
Choose a tag to compare

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

26 Dec 13:58
Compare
Choose a tag to compare

Changes included:

  • Improve handling of tasks submitted to a stopped pool
    • Sending a task using Submit() will panic with ErrSubmitOnStoppedPool if the pool has been stopped.
    • Sending a task using TrySubmit() will return false if the pool has been stopped.
  • Update dependencies in benchmark package

Release 1.6.0

20 Nov 13:59
a646d99
Compare
Choose a tag to compare

Changes included:

  • Upgrade version of go to 1.17
  • Fix flaky test

Release 1.5.1

10 Jul 13:59
Compare
Choose a tag to compare

Changes included:

  • Prevent waitingTasks counter to wrap around (fixes #12)
  • Upgrade version of go to 1.16

Release 1.5.0

31 Dec 18:37
a5eea7f
Compare
Choose a tag to compare

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

06 Jun 22:19
Compare
Choose a tag to compare
  • 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

26 May 02:06
Compare
Choose a tag to compare

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

31 Mar 14:40
Compare
Choose a tag to compare
v1.2.0

Prevent data race in purger