From: Tin Tvrtković Date: Sat, 19 Aug 2023 20:14:38 +0000 (+0200) Subject: gh-107980: fix doc role for asyncio.timeouts (#108126) X-Git-Tag: v3.13.0a1~905 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a47c13cae5b32e6f3d7532cc6dbb4e1ac31219de;p=thirdparty%2FPython%2Fcpython.git gh-107980: fix doc role for asyncio.timeouts (#108126) --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 0651ff7213e5..1c419728c9a4 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -631,9 +631,9 @@ Shielding From Cancellation Timeouts ======== -.. coroutinefunction:: timeout(delay) +.. function:: timeout(delay) - An :ref:`asynchronous context manager ` + Return an :ref:`asynchronous context manager ` that can be used to limit the amount of time spent waiting on something. @@ -724,7 +724,7 @@ Timeouts .. versionadded:: 3.11 -.. coroutinefunction:: timeout_at(when) +.. function:: timeout_at(when) Similar to :func:`asyncio.timeout`, except *when* is the absolute time to stop waiting, or ``None``.