diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-26 17:15:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 17:15:35 (GMT) |
commit | 9de6be4e2ae605a1deb6fa72d5c5f66b07817e4c (patch) | |
tree | ef8050da8bc9d6bc04557ea72d04930b97b55a31 /Misc | |
parent | 1036ccb55de4abc70837cb46a72ddbb370b8fc94 (diff) | |
download | cpython-9de6be4e2ae605a1deb6fa72d5c5f66b07817e4c.zip cpython-9de6be4e2ae605a1deb6fa72d5c5f66b07817e4c.tar.gz cpython-9de6be4e2ae605a1deb6fa72d5c5f66b07817e4c.tar.bz2 |
bpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) (GH-21964)
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 a2118a14627256197bddcf4fcecad4c264c1e39d)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-08-15-15-21-40.bpo-37658.f9nivB.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-08-15-15-21-40.bpo-37658.f9nivB.rst b/Misc/NEWS.d/next/Library/2020-08-15-15-21-40.bpo-37658.f9nivB.rst new file mode 100644 index 0000000..694fbbb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-08-15-15-21-40.bpo-37658.f9nivB.rst @@ -0,0 +1,2 @@ +:meth:`asyncio.wait_for` now properly handles races between cancellation of +itself and the completion of the wrapped awaitable. |