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 ac9bc7c commit 7aeb10eCopy full SHA for 7aeb10e
Doc/library/asyncio-task.rst
@@ -758,6 +758,9 @@ Timeouts
758
An :ref:`asynchronous context manager <async-context-managers>`
759
for cancelling overdue coroutines.
760
761
+ Prefer using :func:`asyncio.timeout` or :func:`asyncio.timeout_at`
762
+ rather than instantiating :class:`!Timeout` directly.
763
+
764
``when`` should be an absolute time at which the context should time out,
765
as measured by the event loop's clock:
766
0 commit comments