Skip to content

🍒[5.5][Concurrency] Cancelled group should only spawn already cancelled tasks #38073

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

Merged

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 23, 2021

Explanation: When creating a child task from a cancelled task group, while the parent task is not cancelled, we still should be creating a cancelled child task. Not doing so causes confusion to end users and is not coherent with our own expectations. This change is ABI additive, it exposes the TaskGroup::isCancelled.
Reviewer: @DougGregor @rjmccall
Radar/SR Issue: rdar://79698889
Risk: Small.
Testing: PR testing and CI on main.
Original PR: #38072

@ktoso ktoso requested a review from a team as a code owner June 23, 2021 23:39
@ktoso ktoso changed the title [Concurrency] Cancelled group should only spawn already cancelled tasks 🍒[5.5][Concurrency] Cancelled group should only spawn already cancelled tasks Jun 23, 2021
@ktoso ktoso requested review from rjmccall and DougGregor June 23, 2021 23:39
@ktoso ktoso force-pushed the pick-wip-taskgroup-cancelled-async branch from 676df62 to b8b839a Compare June 24, 2021 00:14
@ktoso
Copy link
Contributor Author

ktoso commented Jun 24, 2021

@swift-ci please test

@ktoso
Copy link
Contributor Author

ktoso commented Jun 24, 2021

@swift-ci nominate

@ktoso ktoso merged commit 2be52a7 into swiftlang:release/5.5 Jun 24, 2021
@ktoso ktoso deleted the pick-wip-taskgroup-cancelled-async branch June 24, 2021 13:32
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.

2 participants