mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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>
This commit is contained in:
parent
eb9c8a8bea
commit
0c6f898005
4 changed files with 32 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue