Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8077434 commit 72dcb0aCopy full SHA for 72dcb0a
1 file changed
Doc/library/asyncio-task.rst
@@ -644,7 +644,12 @@ Task functions
644
cancels the task and raises :exc:`asyncio.TimeoutError`. To avoid the task
645
cancellation, wrap it in :func:`shield`.
646
647
+ If the wait is cancelled, the future *fut* is also cancelled.
648
+
649
This function is a :ref:`coroutine <coroutine>`, usage::
650
651
result = yield from asyncio.wait_for(fut, 60.0)
652
653
+ .. versionchanged:: 3.4.3
654
+ If the wait is cancelled, the future *fut* is now also cancelled.
655
0 commit comments