Skip to content

Release v2.1.0

Compare
Choose a tag to compare
@alitto alitto released this 09 Nov 14:32
· 4 commits to main since this release
11ecf70

What's Changed

  • feat(taskgroup): improve task group functionality by @alitto in #81
    • Added a new method to the pool to create a task group associated with a context (pool.NewGroupContext(ctx))
    • Added new methods to task groups:
      • group.Done(): returns a channel that is closed when all tasks in the group finish or the first error is returned.
      • group.Stop(): stops the task group. Queued tasks will be discarded but running tasks will complete their execution.
    • Added a new example showcasing the new pool.NewGroupContext(ctx) method.

Full Changelog: v2.0.4...v2.1.0