-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Cancellation of TaskGroup should not trigger cancel handler of parent task #40562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancellation of TaskGroup should not trigger cancel handler of parent task #40562
Conversation
@swift-ci please test |
test/Concurrency/Runtime/taskgroup_cancelAll_cancellationHandler.swift
Outdated
Show resolved
Hide resolved
test/Concurrency/Runtime/async_taskgroup_cancel_from_inside_child.swift
Outdated
Show resolved
Hide resolved
3258b45
to
d8b0aef
Compare
@swift-ci please test |
LGTM once:
Thanks again for digging into this @rokhinip ! PS: You can just "smoke test" after the change is made, since the full test run takes ages and these are a small change 👍 |
Build failed |
@swift-ci please test |
9f36f03
to
a680523
Compare
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, needs a rebase I think and adjusting the test since the group capture will fail now already I think?
a680523
to
1fb7693
Compare
@swift-ci please smoke test and merge it |
handler of parent task that created the group Change comment in TaskGroup.swift to enforce that only parent task can call cancelAll on the group Add tests to verify mutating of task group in child tasks will fail Radar-Id: rdar://problem/86346865
1fb7693
to
835f274
Compare
@swift-ci please smoke test and merge it |
@swift-ci please smoke test |
@swift-ci Please smoke test macOS platform |
Make sure that cancelling a task group does not invoke cancellation handler of parent task that created the group
Change comment in TaskGroup.swift such that only parent task can call cancelAll on the group
Add tests to verify mutating of task group in child tasks will fail
Radar-Id: rdar://problem/86346865