Skip to content

Commit 7bf8763

Browse files
committed
review change
1 parent 7d28f24 commit 7bf8763

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,9 +843,6 @@ Timeouts
843843
Wait for the *fut* :ref:`awaitable <asyncio-awaitables>`
844844
to complete with a timeout.
845845

846-
If *fut* is a coroutine, it is awaited directly rather than being wrapped
847-
in a :class:`Task`, unless *timeout* is zero or negative.
848-
849846
*timeout* can either be ``None`` or a float or int number of seconds
850847
to wait for. If *timeout* is ``None``, block until the future
851848
completes.

Lib/asyncio/tasks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,6 @@ def _release_waiter(waiter, *args):
440440
async def wait_for(fut, timeout):
441441
"""Wait for the single Future or coroutine to complete, with timeout.
442442
443-
A coroutine is awaited directly rather than being wrapped in a Task,
444-
unless timeout is zero or negative.
445-
446443
Returns result of the Future or coroutine. When a timeout occurs,
447444
it cancels fut and raises TimeoutError. To prevent fut from being
448445
cancelled, wrap it in shield().

0 commit comments

Comments
 (0)