Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72dcb0a

Browse files
committed
Issue #23219: Update asyncio.wait_for() documentation
the wait is cancelled, the future *fut* is now also cancelled.
1 parent 8077434 commit 72dcb0a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,12 @@ Task functions
644644
cancels the task and raises :exc:`asyncio.TimeoutError`. To avoid the task
645645
cancellation, wrap it in :func:`shield`.
646646

647+
If the wait is cancelled, the future *fut* is also cancelled.
648+
647649
This function is a :ref:`coroutine <coroutine>`, usage::
648650

649651
result = yield from asyncio.wait_for(fut, 60.0)
650652

653+
.. versionchanged:: 3.4.3
654+
If the wait is cancelled, the future *fut* is now also cancelled.
655+

0 commit comments

Comments
 (0)