summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2022-07-24 20:18:05 (GMT)
committerGitHub <noreply@github.com>2022-07-24 20:18:05 (GMT)
commit0c6f898005099be189ee65bcfda659f5fc13b802 (patch)
tree92406f5b3df6f1e9784ba25d2dc918d677f3e145 /Doc
parenteb9c8a8bea9128b31d4a604c4a1f27ec9b45f333 (diff)
downloadcpython-0c6f898005099be189ee65bcfda659f5fc13b802.zip
cpython-0c6f898005099be189ee65bcfda659f5fc13b802.tar.gz
cpython-0c6f898005099be189ee65bcfda659f5fc13b802.tar.bz2
gh-95051: ensure that timeouts scheduled with `asyncio.Timeout` that have already expired are deliverered promptly (#95109)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-task.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index a307d22..a6b638c 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -625,6 +625,9 @@ Timeouts
If *when* is a float, it is set as the new deadline.
+ if *when* is in the past, the timeout will trigger on the next
+ iteration of the event loop.
+
.. method:: expired() -> bool
Return whether the context manager has exceeded its deadline