§
21#_ߟÔ.ã óÞ — 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 defd„Zdee defd„ZdS )é N)Ú
TracebackType)ÚfinalÚOptionalÚTypeé )Úevents)Ú
exceptions)Útasks)ÚTimeoutÚtimeoutÚ
timeout_atc ó" — e Zd ZdZdZdZdZdZdS )Ú_StateÚcreatedÚactiveÚexpiringÚexpiredÚfinishedN)Ú__name__Ú
__module__Ú__qualname__ÚCREATEDÚENTEREDÚEXPIRINGÚEXPIREDÚEXITED© ó ú=/opt/alt/python-internal/lib64/python3.11/asyncio/timeouts.pyr r s' € € € € € Ø€GØ€GØ€HØ€GØ
€F€F€Fr r c óÞ — e Zd ZdZdee ddfd„Zdee fd„Zdee ddfd„Zde fd„Z
defd „Zdd
„Z
deee dee d
ee dee fd„Zdd„ZdS )r zšAsynchronous context manager for cancelling overdue coroutines.
Use `timeout()` or `timeout_at()` rather than instantiating this class directly.
ÚwhenÚreturnNc óR — t j | _ d| _ d| _ || _ dS )zòSchedule 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' € õ ”nˆŒà>BˆÔØ+/ˆŒ
؈Œ
ˆ
ˆ
r c ó — | j S )zReturn the current deadline.)r' ©r( s r r! zTimeout.when. s
€ àŒzÐr c óæ — | j t j ur?| j t j u rt d¦ « ‚t d| j j › d�¦ « ‚|| _ | j �| j ¦ « |€ d| _ dS t j
¦ « }|| ¦ « k r!| | j
¦ « | _ dS | || j
¦ « | _ dS )zReschedule the timeout.zTimeout has not been enteredzCannot change state of z TimeoutN)r$ r r r ÚRuntimeErrorÚvaluer' r% Úcancelr Úget_running_loopÚtimeÚ call_soonÚ_on_timeoutÚcall_at)r( r! Úloops r Ú
reschedulezTimeout.reschedule2 së € àŒ;�fœnÐ,Ð,ØŒ{�fœnÐ,Ð,Ý"Ð#AÑBÔBÐBÝØE¨$¬+Ô*;ÐEÐEÐEñô ð
𠈌
àÔ Ð,ØÔ!×(Ò(Ñ*Ô*Ð*àˆ<Ø$(ˆDÔ!Ð!Ð!åÔ*Ñ,Ô,ˆDØ�t—y’y‘{”{Ò"Ð"Ø(,¯ª°tÔ7GÑ(HÔ(H�Ô%Ð%Ð%à(,¯ª°T¸4Ô;KÑ(LÔ(L�Ô%Ð%Ð%r c ó@ — | j t j t j fv S )z$Is timeout expired during execution?)r$ r r r r+ s r r zTimeout.expiredI s € àŒ{�vœµ´Ð?Ð?Ð?r c óê — dg}| j t j u r6| j �t | j d¦ « nd }| d|› �¦ « d |¦ « }d| j j › d|› d�S )NÚ é zwhen=ú z