python (3.12.0)
ˑe
d dl Z d dlmZ d dlmZmZmZ ddlmZ ddlm Z ddlm
Z
dZ G d d
e j Z
e G d d Zd
ee defdZdee defdZy) N)
TracebackType)finalOptionalType )events)
exceptions)tasks)Timeouttimeout
timeout_atc e Zd ZdZdZdZdZdZy)_StatecreatedactiveexpiringexpiredfinishedN)__name__
__module____qualname__CREATEDENTEREDEXPIRINGEXPIREDEXITED D/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/asyncio/timeouts.pyr r s GGHG
Fr r c e Zd ZdZdee ddfdZdee fdZdee ddfdZde fdZ
defd Zdd
Z
deee dee d
ee dee fdZddZy)r zAsynchronous context manager for cancelling overdue coroutines.
Use `timeout()` or `timeout_at()` rather than instantiating this class directly.
whenreturnNc X t j | _ d| _ d| _ || _ y)zSchedule a timeout that will trigger at a given loop time.
- If `when` is `None`, the timeout will never trigger.
- If `when < loop.time()`, the timeout will trigger on the next
iteration of the event loop.
N)r r _state_timeout_handler_task_when)selfr! s r __init__zTimeout.__init__! s% nn>B+/
r c | j S )zReturn the current deadline.)r'