diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-26 17:14:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 17:14:59 (GMT) |
commit | 1036ccb55de4abc70837cb46a72ddbb370b8fc94 (patch) | |
tree | 307a6e80f9467c7ad18242c717c772d5e3fc809f /Misc | |
parent | d7cd1164c18dbf78380ce4c95bf46c7bb0ac0bb7 (diff) | |
download | cpython-1036ccb55de4abc70837cb46a72ddbb370b8fc94.zip cpython-1036ccb55de4abc70837cb46a72ddbb370b8fc94.tar.gz cpython-1036ccb55de4abc70837cb46a72ddbb370b8fc94.tar.bz2 |
bpo-32751: Wait for task cancel in asyncio.wait_for() when timeout <= 0 (GH-21895) (GH-21963)
When I was fixing bpo-32751 back in GH-7216 I missed the case when
*timeout* is zero or negative. This takes care of that.
Props to @aaliddell for noticing the inconsistency.
(cherry picked from commit c517fc712105c8e5930cb42baaebdbe37fc3e15f)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-08-15-15-50-12.bpo-32751.85je5X.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-08-15-15-50-12.bpo-32751.85je5X.rst b/Misc/NEWS.d/next/Library/2020-08-15-15-50-12.bpo-32751.85je5X.rst new file mode 100644 index 0000000..c172ce5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-08-15-15-50-12.bpo-32751.85je5X.rst @@ -0,0 +1,3 @@ +When cancelling the task due to a timeout, :meth:`asyncio.wait_for` will now +wait until the cancellation is complete also in the case when *timeout* is +<= 0, like it does with positive timeouts. |