Skip to content

Fix task group regression introduced with PR #92#93

Open
perkon wants to merge 2 commits into
masterfrom
fix-task-group-regression
Open

Fix task group regression introduced with PR #92#93
perkon wants to merge 2 commits into
masterfrom
fix-task-group-regression

Conversation

@perkon

@perkon perkon commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

This reverts PR #92.

The introduced changes are a regression, where the context cancellation does not return context.Canceled error.
Furthermore, it is confusing to have the NewGroup function and the Wait method both accepting a context that can cancel the group.

The golang Context and Structs article states that storing a context in a struct via the New function leads to confusion and must be avoided.

This context originally was hidden and used for convenience - we may as well use a done channel instead.

@perkon perkon requested a review from a team as a code owner June 5, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant