Skip to content

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

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

Closed
wants to merge 1 commit into from

Conversation

elprans
Copy link
Contributor

@elprans elprans 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)

https://bugs.python.org/issue37658

…pythonGH-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 <[email protected]>
@1st1
Copy link
Member

1st1 commented Aug 26, 2020

@ambv I don't think I can merge this on my own...

@ambv
Copy link
Contributor

ambv commented Aug 26, 2020

@1st1 it's because 3.7 is in "security bug fixes only" mode now. 3.7.9 last week was the last regular bugfix release, and even that was an extended release courtesy of Ned. I don't think 3.7 will be getting this.

@1st1
Copy link
Member

1st1 commented Aug 26, 2020

ah, sure. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants