mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
[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 a47c13cae5
)
Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
This commit is contained in:
parent
540c0d99ea
commit
0e5eee0130
1 changed files with 3 additions and 3 deletions
|
@ -628,9 +628,9 @@ Shielding From Cancellation
|
||||||
Timeouts
|
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
|
that can be used to limit the amount of time spent waiting on
|
||||||
something.
|
something.
|
||||||
|
|
||||||
|
@ -721,7 +721,7 @@ Timeouts
|
||||||
|
|
||||||
.. versionadded:: 3.11
|
.. versionadded:: 3.11
|
||||||
|
|
||||||
.. coroutinefunction:: timeout_at(when)
|
.. function:: timeout_at(when)
|
||||||
|
|
||||||
Similar to :func:`asyncio.timeout`, except *when* is the absolute time
|
Similar to :func:`asyncio.timeout`, except *when* is the absolute time
|
||||||
to stop waiting, or ``None``.
|
to stop waiting, or ``None``.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue