Skip to content

[3.9] bpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) #21964

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
Aug 26, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 26, 2020

Currently, if asyncio.wait_for() itself is cancelled it will always
raise CancelledError regardless if the underlying task is still
running. This is similar to a race with the timeout, which is handled
already.
(cherry picked from commit a2118a1)

Co-authored-by: Elvis Pranskevichus elvis@magic.io

https://bugs.python.org/issue37658

…onGH-21894)

Currently, if `asyncio.wait_for()` itself is cancelled it will always
raise `CancelledError` regardless if the underlying task is still
running.  This is similar to a race with the timeout, which is handled
already.
(cherry picked from commit a2118a1)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
@ambv ambv merged commit 9de6be4 into python:3.9 Aug 26, 2020
@miss-islington miss-islington deleted the backport-a2118a1-3.9 branch August 26, 2020 17:15
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.

5 participants