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.
asyncio.timeout[_at]
asyncio.Timeout
1 parent 16efaa2 commit 0e7c06aCopy full SHA for 0e7c06a
Doc/library/asyncio-task.rst
@@ -771,6 +771,9 @@ Timeouts
771
An :ref:`asynchronous context manager <async-context-managers>`
772
for cancelling overdue coroutines.
773
774
+ Prefer using :func:`asyncio.timeout` or :func:`asyncio.timeout_at`
775
+ rather than instantiating :class:`!Timeout` directly.
776
+
777
``when`` should be an absolute time at which the context should time out,
778
as measured by the event loop's clock:
779
0 commit comments