Release v2.1.0
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.
- Added a new method to the pool to create a task group associated with a context (
Full Changelog: v2.0.4...v2.1.0