Skip to content

Yield TimeoutError before cancelling body task in withTimeout #1743

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
Oct 9, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 8, 2024

Otherwise, the body task might finish before we yield the TimeoutError and thus withTimeout would not actually throw a TimeoutError.

rdar://137171114

Otherwise, the body task might finish before we yield the `TimeoutError` and thus `withTimeout` would not actually throw a `TimeoutError`.

rdar://137171114
@ahoppen
Copy link
Member Author

ahoppen commented Oct 8, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 3bf05ad into swiftlang:main Oct 9, 2024
3 checks passed
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