summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-19 23:08:40 (GMT)
committerGitHub <noreply@github.com>2023-08-19 23:08:40 (GMT)
commit0e5eee0130bb4924264250da60c2d636d357dc4d (patch)
tree8846c12eeb3a23c86b72c473bfe2a66c2a677f2c
parent540c0d99eabcdaedd7f6b56406abc08a628188b1 (diff)
downloadcpython-0e5eee0130bb4924264250da60c2d636d357dc4d.zip
cpython-0e5eee0130bb4924264250da60c2d636d357dc4d.tar.gz
cpython-0e5eee0130bb4924264250da60c2d636d357dc4d.tar.bz2
[3.12] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108152)
gh-107980: fix doc role for asyncio.timeouts (GH-108126) (cherry picked from commit a47c13cae5b32e6f3d7532cc6dbb4e1ac31219de) Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
-rw-r--r--Doc/library/asyncio-task.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index d07fbae..f488aa7 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -628,9 +628,9 @@ Shielding From Cancellation
Timeouts
========
-.. coroutinefunction:: timeout(delay)
+.. function:: timeout(delay)
- An :ref:`asynchronous context manager <async-context-managers>`
+ Return an :ref:`asynchronous context manager <async-context-managers>`
that can be used to limit the amount of time spent waiting on
something.
@@ -721,7 +721,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``.