Skip to content

Releases: alitto/pond

Release v2.0.1

20 Oct 17:59
d0bc8c6
Compare
Choose a tag to compare

Fixes

  • Avoid launching workers that exit immediately without running any tasks.
  • Prevent task group Wait() from returning eagerly when tasks are executed before submitting the last one of the group.

Release v2.0.0

20 Oct 00:54
b327a6c
Compare
Choose a tag to compare

What's new in v2?

Version 2 of pond introduces many improvements and new features:

  • Unbounded Task Queues: Task queues are now unbounded by default, simplifying pool creation.
  • Task Submission with Results: New APIs allow tasks to return results, enhancing flexibility.
  • Awaitable Task Completion: Tasks can now be awaited, providing better control over task execution.
  • Type Safe APIs: Improved type safety for tasks that return errors or results.
  • Panics Recovery: Panics during task execution are captured and returned as errors, allowing graceful error handling.
  • Subpools: Create subpools with a fraction of the parent pool's workers for specific tasks.
  • Default Pool: A global default pool is available for task submission without explicit pool creation.

Migration from v1 to v2

There have been a significant number of breaking changes in v2, so please make sure to read the migration guide if you are upgrading from v1.

Release v1.9.2

01 Sep 14:43
18002c1
Compare
Choose a tag to compare

Changes included

  • Fix bug that worker doesn't return after context cancel #71 - Thanks @hongkuancn!
  • Drain tasks in an unblocked way to avoid data race #72 (fixes #70) - Again, thanks @hongkuancn! 🙌

Release v1.9.1

10 Jul 12:41
5f162d4
Compare
Choose a tag to compare

Changes included

  • Return context in Stop() to notify user when everything has been stopped - PR: #67 - Closes: #63) - Thanks @CorentinClabaut 🙌

Release v1.9.0

17 Jun 16:42
e2fe415
Compare
Choose a tag to compare

Changes included

  • Fix: clear pending tasks in the worker when the context is canceled to avoid deadlocks in StopAndWait when tasks are queued for the worker. PR: #62 - Thanks @CorentinClabaut! 🙌
  • Fix errors in github actions workflow
  • Bump max supported go version in tests to 1.22
  • Rename default branch from master to main

Release 1.8.3

31 Jan 18:45
2fbcfba
Compare
Choose a tag to compare

Changes included

  • Fix submit onARM 32-bit cpus #39 - Thanks @mcuadros! 🙌
  • Return Context error if it is canceled before at least 1 task failed #40 - Thanks @NOMORECOFFEE! 🙌

Release 1.8.2

14 Oct 11:16
fbc6f5d
Compare
Choose a tag to compare

Changes included

  • Synchronize read & write of TaskGroupWithContext's err variable #37 (thanks @thekondor 🥇)

Release 1.8.1

28 Aug 22:13
c7a74b9
Compare
Choose a tag to compare

Changes included

  • Fix for #33
  • Upgrade to go 1.19
  • Extracted counter updates from main worker function to make it simpler and more generic
  • Moved worker function to a separate file
  • Added Makefile with test targets

Release 1.8.0

09 May 23:13
Compare
Choose a tag to compare
  • Upgrade go version to 1.18
  • Implement new method in WorkerPool to create a group of tasks associated to a context GroupContext(ctx context.Context)
  • Move TaskGroup to a separate file
  • Move tests related to task groups to a separate file

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