What's Changed
- feat(taskgroup): improve task group functionality by @alitto in https://github.com/alitto/pond/pull/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.
- Added a new method to the pool to create a task group associated with a context (
Full Changelog: https://github.com/alitto/pond/compare/v2.0.4...v2.1.0