Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ Timeouts
An :ref:`asynchronous context manager <async-context-managers>`
for cancelling overdue coroutines.

Prefer using :func:`asyncio.timeout` or :func:`asyncio.timeout_at`
rather than instantiating :class:`Timeout` directly.
Comment thread
picnixz marked this conversation as resolved.
Outdated

``when`` should be an absolute time at which the context should time out,
as measured by the event loop's clock:

Expand Down
Loading