Skip to content

fix: notify group Done listeners on context cancellation - #151

Open
yuefdev wants to merge 1 commit into
alitto:mainfrom
yuefdev:fix/group-done-context-cancellation-sol
Open

yuefdev wants to merge 1 commit into
alitto:mainfrom
yuefdev:fix/group-done-context-cancellation-sol

Conversation

@yuefdev

@yuefdev yuefdev commented Oct 18, 2026

Copy link
Copy Markdown

Notify existing task-group Done listeners when their parent context is cancelled. Currently the channel stays open until a task resolves, so cancellation cannot wake a caller while a running task is still blocked.

Watch cancellation for each pending listener and stop the watcher when that listener completes. The regression fails before the fix and keeps the running task blocked until cleanup. Full tests, vet and changed-file gofmt pass on Go 1.27.0/Windows; race testing is unavailable without cgo.

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