eSSKrSSKJr SSKJrJrJr SSKJr SSKJ r SSKJ r Sr "S S \R5r \"S S 55rS \\S\4SjrS\\S\4Sjrg)N) TracebackType)finalOptionalType)events) exceptions)tasks)Timeouttimeout timeout_atc(\rSrSrSrSrSrSrSrSr g) _StatecreatedactiveexpiringexpiredfinishedN) __name__ __module__ __qualname____firstlineno__CREATEDENTEREDEXPIRINGEXPIREDEXITED__static_attributes__r6/opt/imh/python3.13/lib/python3.13/asyncio/timeouts.pyrrsGGHG Fr!rc \rSrSrSrS\\SS4SjrS\\4SjrS\\SS4Sjr S\ 4S jr S\ 4S jr SS jrS \\\S \\S\\S\\ 4SjrSSjr\S \SS4Sj5rSrg)r zAsynchronous context manager for cancelling overdue coroutines. Use `timeout()` or `timeout_at()` rather than instantiating this class directly. whenreturnNcV[RUlSUlSUlXlg)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)rr_state_timeout_handler_task_when)selfr%s r"__init__Timeout.__init__!s#nn >B+/  r!cUR$)zReturn the current deadline.)r+r,s r"r% Timeout.when.s zzr!cUR[RLaKUR[RLa [ S5e[ SURR S35eXlURbURR5 UcSUlg[R"5nXR5::a!URUR5UlgURXR5Ulg)zReschedule the timeout.zTimeout has not been enteredzCannot change state of z TimeoutN)r(rrr RuntimeErrorvaluer+r)cancelrget_running_looptime call_soon _on_timeoutcall_at)r,r%loops r" rescheduleTimeout.reschedule2s ;;fnn ,{{fnn,"#ABB)$++*;*;))r(rrr+roundappendjoinr4)r,infor%info_strs r"__repr__Timeout.__repr__Msst ;;&.. (+/::+A5Q'tD KK%v '88D>DKK--.az;;r!cN# UR[RLa [S5e[R "5nUc [S5e[R UlXlURR5Ul URUR5 U$7f)Nz Timeout has already been enteredz$Timeout should be used inside a task) r(rrr3r current_taskrr* cancelling _cancellingr<r+)r,tasks r" __aenter__Timeout.__aenter__Usz ;;fnn ,AB B!!# <EF Fnn  ::002  # sB#B%exc_typeexc_valexc_tbc# UR[R[R4;deURb!URR 5 SUlUR[RLa[R UlURR5UR::avUbs[U[R5(a[UeUbJURU5 [U[ 5(a$URHnURU5 M gUR[RLa[R"Ulg7fN)r(rrrr)r5rr*uncancelrP issubclassr CancelledError TimeoutError_insert_timeout_error isinstanceExceptionGroupr)r,rTrUrVexcs r" __aexit__Timeout.__aexit__as {{v~~v????  ,  ! ! ( ( *$(D ! ;;&// ) ..DKzz""$(8(88X=Qh (A(ABB&G3(..w7!'>::#*#5#5C 66s;$6 [[FNN * --DKsE#E%cUR[RLdeURR 5 [R UlSUlgrX)r(rrr*r5rr)r0s r"r9Timeout._on_timeouts;{{fnn,,, oo $r!cURbn[UR[R5(a)[ 5nUR=UlUlXlgURnURbMmggrX) __context__r^r r[r\ __cause__)rUtes r"r]Timeout._insert_timeout_errorsd!!-'--z/H/HII!^070C0CC&(#))G !!-r!)rPr(r*r)r+)r&r )r&N)rrrr__doc__rfloatr-r%r<boolrstrrKrRr BaseExceptionrrar9 staticmethodr]r rr!r"r r s Xe_  huoMxM4M.@@<#< 4 ./-('  $ <%*}***r!r delayr&cv[R"5n[UbUR5U-5$S5$)aTimeout async context manager. Useful in cases when you want to apply timeout logic around block of code or in cases when asyncio.wait_for is not suitable. For example: >>> async with asyncio.timeout(10): # 10 seconds timeout ... await long_running_task() delay - value in seconds or None to disable timeout logic long_running_task() is interrupted by raising asyncio.CancelledError, the top-most affected timeout() context manager converts CancelledError into TimeoutError. N)rr6r r7)rpr;s r"r r s5  " " $D %*;499;& FF FFr!r%c[U5$)a6Schedule the timeout at absolute time. Like timeout() but argument gives absolute time in the same clock system as loop.time(). Please note: it is not POSIX time but a time with undefined starting base, e.g. the time of the system power on. >>> async with asyncio.timeout_at(loop.time() + 10): ... await long_running_task() when - a deadline when timeout occurs or None to disable timeout logic long_running_task() is interrupted by raising asyncio.CancelledError, the top-most affected timeout() context manager converts CancelledError into TimeoutError. )r )r%s r"r r s& 4=r!)enumtypesrtypingrrrrArr r __all__Enumrr rkr r rr!r"rxs (( TYYs*s*s*lG8E?GwG(Xe_r!