Skip to content

[Concurrency] Fix missing inherit executor on withTaskCancellationHandler #62546

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
merged 1 commit into from
Dec 13, 2022

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Dec 13, 2022

Similar case to #62239 - i.e. another case of missing @_unsafeInheritExecutor on a function which needed it.

Also improve docs a bit while at it, explaining when onCancel triggers.

Resolves rdar://99845352

@ktoso ktoso requested a review from DougGregor December 13, 2022 04:10
@ktoso
Copy link
Contributor Author

ktoso commented Dec 13, 2022

@swift-ci please smoke test

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ktoso
Copy link
Contributor Author

ktoso commented Dec 13, 2022

Hmmm but this is passing locally... maybe needs a clean

@ktoso
Copy link
Contributor Author

ktoso commented Dec 13, 2022

@swift-ci please clean smoke test

@ktoso ktoso force-pushed the wip-moreExecutorFixes branch from a928379 to 5a97b0a Compare December 13, 2022 06:55
@ktoso
Copy link
Contributor Author

ktoso commented Dec 13, 2022

@swift-ci please clean test

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Dec 13, 2022
@ktoso ktoso merged commit 387d362 into swiftlang:main Dec 13, 2022
@ktoso ktoso deleted the wip-moreExecutorFixes branch December 13, 2022 12:45
meg-gupta pushed a commit to meg-gupta/swift that referenced this pull request Dec 16, 2022
ando-huang pushed a commit to ando-huang/swift that referenced this pull request Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants