eZtSrSrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK J r "SS5r "SS \ 5r "S S 5r "S S 5r"SS5r"SS\5rSq\R$"5r"SS\R(5r\"5rSrSrSrSrSrSrSrSrSrSr Sr!\r"\r#\r$\r%SSK&JrJrJrJr \r'\r(\r)\r*\,"\S 5(aS!r-\R\"\-S"9 gg!\+a N+f=f)#z!Event loop and event loop policy.)AbstractEventLoopPolicyAbstractEventLoopAbstractServerHandle TimerHandleget_event_loop_policyset_event_loop_policyget_event_loopset_event_loopnew_event_loopget_child_watcherset_child_watcher_set_running_loopget_running_loop_get_running_loopN)format_helperscJ\rSrSrSrSrS SjrSrSrSr S r S r S r S r g)rz1Object returned by callback registration methods.) _callback_args _cancelled_loop_source_traceback_repr __weakref___contextNc,Uc[R"5nX@lX0lXlX lSUlSUlURR5(a0[R"[R"S55Ul gSUl g)NFr) contextvars copy_contextrrrrrr get_debugr extract_stacksys _getframer)selfcallbackargsloopcontexts 4/opt/imh/python3.13/lib/python3.13/asyncio/events.py__init__Handle.__init__$ss ?!..0G  !  ::   ! !%3%A%A a &"D "&*D "cURR/nUR(aURS5 URbQUR[ R "URURURR5S95 UR(a,URSnURSUSSUS35 U$)N cancelleddebugz created at r:r) __class____name__rappendrr_format_callback_sourcerrr!r)r%infoframes r* _repr_infoHandle._repr_info3s''( ?? KK $ >> % KK>> jj**,. /  ! !**2.E KK+eAhZqq ; < r-cURb UR$UR5nSRSRU55$)Nz<{}> )rr:formatjoin)r%r8s r*__repr__Handle.__repr__@s9 :: !::  }}SXXd^,,r-cUR$N)rr%s r* get_contextHandle.get_contextFs }}r-cUR(dESUlURR5(a[U5UlSUlSUlgg)NT)rrr!reprrrrrDs r*cancel Handle.cancelIsC"DOzz##%%"$Z !DNDJr-cUR$rC)rrDs r*r/Handle.cancelledTs r-cURR"UR/URQ76 Sng![[ 4a e[ an[R"URURURR5S9nSU3nUUUS.nUR(aURUS'URRU5 SnASngSnAff=f)Nr0zException in callback )message exceptionhandlesource_traceback) rrunrr SystemExitKeyboardInterrupt BaseExceptionrr7rr!rcall_exception_handler)r%exccbmsgr)s r*_run Handle._runWs 7 MM  dnn :tzz : -.   777 jj**,.B+2$/C G %%.2.D.D*+ JJ - -g 6 6 7s16C$BCC$)rrrrrrrrC)r5 __module__ __qualname____firstlineno____doc__ __slots__r+r:r@rErIr/rZ__static_attributes__r-r*rrs/;I * -  r-rcz^\rSrSrSrSS/rSU4SjjrU4SjrSrSr S r S r S r S r U4S jrSrSrU=r$)rlz7Object returned by timed callback registration methods. _scheduled_whenc|>[TU]X#XE5 UR(a URS XlSUlg)Nr2F)superr+rrfre)r%whenr&r'r(r)r4s r*r+TimerHandle.__init__qs5 7  ! !&&r* r-c>[TU]5nUR(aSOSnURUSUR35 U$)Nrzwhen=)rhr:rinsertrf)r%r8posr4s r*r:TimerHandle._repr_infoxs;w!#??a C5 -. r-c,[UR5$rC)hashrfrDs r*__hash__TimerHandle.__hash__~sDJJr-cj[U[5(aURUR:$[$rC isinstancerrfNotImplementedr%others r*__lt__TimerHandle.__lt__( e[ ) ):: + +r-c[U[5(a1URUR:=(d URU5$[$rCrvrrf__eq__rwrxs r*__le__TimerHandle.__le__6 e[ ) ):: +At{{5/A Ar-cj[U[5(aURUR:$[$rCrurxs r*__gt__TimerHandle.__gt__r|r-c[U[5(a1URUR:=(d URU5$[$rCr~rxs r*__ge__TimerHandle.__ge__rr-c*[U[5(ayURUR:H=(aY URUR:H=(a9 URUR:H=(a UR UR :H$[ $rC)rvrrfrrrrwrxs r*rTimerHandle.__eq__so e[ ) )JJ%++-8NNeoo58JJ%++-8OOu'7'77 9r-cz>UR(dURRU5 [TU]5 grC)rr_timer_handle_cancelledrhrI)r%r4s r*rITimerHandle.cancels& JJ . .t 4 r-cUR$)ztReturn a scheduled callback time. The time is an absolute timestamp, using the same time reference as loop.time(). )rfrDs r*riTimerHandle.whens zzr-)rerfrC)r5r\r]r^r_r`r+r:rrrzrrrrrIrira __classcell__)r4s@r*rrlsGAw'I        r-rcT\rSrSrSrSrSrSrSrSr Sr S r S r S r S rS rg)rz,Abstract server returned by create_server().c[e)z5Stop serving. This leaves existing connections open.NotImplementedErrorrDs r*closeAbstractServer.close!!r-c[e)zClose all active connections.rrDs r* close_clientsAbstractServer.close_clientsrr-c[e)z)Close all active connections immediately.rrDs r* abort_clientsAbstractServer.abort_clientsrr-c[e)z4Get the event loop the Server object is attached to.rrDs r*get_loopAbstractServer.get_looprr-c[e)z3Return True if the server is accepting connections.rrDs r* is_servingAbstractServer.is_servingrr-c# [e7f)zwStart accepting connections. This method is idempotent, so it can be called when the server is already being serving. rrDs r* start_servingAbstractServer.start_serving "! c# [e7f)zuStart accepting connections until the coroutine is cancelled. The server is closed when the coroutine is cancelled. rrDs r* serve_foreverAbstractServer.serve_forever "!rc# [e7f)z*Coroutine to wait until service is closed.rrDs r* wait_closedAbstractServer.wait_closed !!rc# U$7frCrbrDs r* __aenter__AbstractServer.__aenter__s  sc`# UR5 UR5IShvN gN7frC)rr)r%rWs r* __aexit__AbstractServer.__aexit__s     s $.,.rbN)r5r\r]r^r_rrrrrrrrrrrarbr-r*rrs76""""""""!r-rc \rSrSrSrSrSrSrSrSr Sr S r S r S r S S .SjrS S .SjrS S .SjrSrSrSrS S .SjrSrSrSSSSS.SjrSKSjrSLS SSSS S S S S S S S. SjjrSL\R6\R8S SS S S S S S SS. S jjrSMSS!.S"jjrS#S S S S$.S%jrSNS S S S S S&.S'jjr SNS SS S S SS(.S)jjr!S S S S*.S+jr"SLSSSS S S S S,.S-jjr#S.r$S/r%\&RN\&RN\&RNS0.S1jr(\&RN\&RN\&RNS0.S2jr)S3r*S4r+S5r,S6r-S7r.S8r/S9r0SKS:jr1S;r2S<r3S=r4S>r5SMS S!.S?jjr6S@r7SAr8SBr9SCr:SDr;SErSHr?SIr@SJrAg )OrzAbstract event loop.c[e)z*Run the event loop until stop() is called.rrDs r* run_foreverAbstractEventLoop.run_foreverrr-c[e)z`Run the event loop until a Future is done. Return the Future's result, or raise its exception. r)r%futures r*run_until_complete$AbstractEventLoop.run_until_completes "!r-c[e)zStop the event loop as soon as reasonable. Exactly how soon that is may depend on the implementation, but no more I/O callbacks should be scheduled. rrDs r*stopAbstractEventLoop.stops "!r-c[e)z3Return whether the event loop is currently running.rrDs r* is_runningAbstractEventLoop.is_runningrr-c[e)z*Returns True if the event loop was closed.rrDs r* is_closedAbstractEventLoop.is_closedrr-c[e)zClose the loop. The loop should not be running. This is idempotent and irreversible. No other methods should be called after this one. rrDs r*rAbstractEventLoop.closes "!r-c# [e7f)z,Shutdown all active asynchronous generators.rrDs r*shutdown_asyncgens$AbstractEventLoop.shutdown_asyncgensrrc# [e7f)z.Schedule the shutdown of the default executor.rrDs r*shutdown_default_executor+AbstractEventLoop.shutdown_default_executor rrc[e)z3Notification that a TimerHandle has been cancelled.r)r%rPs r*r)AbstractEventLoop._timer_handle_cancelledrr-N)r)c0UR"SU/UQ7SU06$)Nrr)) call_laterr%r&r)r's r* call_soonAbstractEventLoop.call_soonsq(CTC7CCr-c[erCr)r%delayr&r)r's r*rAbstractEventLoop.call_later!!r-c[erCr)r%rir&r)r's r*call_atAbstractEventLoop.call_atrr-c[erCrrDs r*timeAbstractEventLoop.timerr-c[erCrrDs r* create_futureAbstractEventLoop.create_future"rr-c [erCr)r%corokwargss r* create_taskAbstractEventLoop.create_task'rr-c[erCrrs r*call_soon_threadsafe&AbstractEventLoop.call_soon_threadsafe,rr-c[erCr)r%executorfuncr's r*run_in_executor!AbstractEventLoop.run_in_executor/rr-c[erCr)r%rs r*set_default_executor&AbstractEventLoop.set_default_executor2rr-r)familytypeprotoflagsc# [e7frCr)r%hostportrrrrs r* getaddrinfoAbstractEventLoop.getaddrinfo7rrc# [e7frCr)r%sockaddrrs r* getnameinfoAbstractEventLoop.getnameinfo; !!r) sslrrrsock local_addrserver_hostnamessl_handshake_timeoutssl_shutdown_timeouthappy_eyeballs_delay interleavec # [e7frCr)r%protocol_factoryrrrrrrrrrrr r r s r*create_connection#AbstractEventLoop.create_connection>s "!rdT) rrrbacklogr reuse_address reuse_port keep_aliverr rc # [e7f)aoA coroutine which creates a TCP server bound to host and port. The return value is a Server object which can be used to stop the service. If host is an empty string or None all interfaces are assumed and a list of multiple sockets will be returned (most likely one for IPv4 and another one for IPv6). The host parameter can also be a sequence (e.g. list) of hosts to bind to. family can be set to either AF_INET or AF_INET6 to force the socket to use IPv4 or IPv6. If not set it will be determined from host (defaults to AF_UNSPEC). flags is a bitmask for getaddrinfo(). sock can optionally be specified in order to use a preexisting socket object. backlog is the maximum number of queued connections passed to listen() (defaults to 100). ssl can be set to an SSLContext to enable SSL over the accepted connections. reuse_address tells the kernel to reuse a local socket in TIME_WAIT state, without waiting for its natural timeout to expire. If not specified will automatically be set to True on UNIX. reuse_port tells the kernel to allow this endpoint to be bound to the same port as other existing endpoints are bound to, so long as they all set this flag when being created. This option is not supported on Windows. keep_alive set to True keeps connections active by enabling the periodic transmission of messages. ssl_handshake_timeout is the time in seconds that an SSL server will wait for completion of the SSL handshake before aborting the connection. Default is 60s. ssl_shutdown_timeout is the time in seconds that an SSL server will wait for completion of the SSL shutdown procedure before aborting the connection. Default is 30s. start_serving set to True (default) causes the created server to start accepting connections immediately. When set to False, the user should await Server.start_serving() or Server.serve_forever() to make the server to start accepting connections. r)r%r rrrrrrrrrrrr rs r* create_serverAbstractEventLoop.create_serverHsx"!r)fallbackc# [e7f)zBSend a file through a transport. Return an amount of sent bytes. r)r% transportfileoffsetcountrs r*sendfileAbstractEventLoop.sendfilerrF) server_siderrr c# [e7f)zdUpgrade a transport to TLS. Return a new transport that *protocol* should start using immediately. r)r%rprotocol sslcontextr rrr s r* start_tlsAbstractEventLoop.start_tlss "!r)rrrrr c# [e7frCr)r%r pathrrrrr s r*create_unix_connection(AbstractEventLoop.create_unix_connectionrr)rrrrr rc# [e7f)aA coroutine which creates a UNIX Domain Socket server. The return value is a Server object, which can be used to stop the service. path is a str, representing a file system path to bind the server socket to. sock can optionally be specified in order to use a preexisting socket object. backlog is the maximum number of queued connections passed to listen() (defaults to 100). ssl can be set to an SSLContext to enable SSL over the accepted connections. ssl_handshake_timeout is the time in seconds that an SSL server will wait for the SSL handshake to complete (defaults to 60s). ssl_shutdown_timeout is the time in seconds that an SSL server will wait for the SSL shutdown to finish (defaults to 30s). start_serving set to True (default) causes the created server to start accepting connections immediately. When set to False, the user should await Server.start_serving() or Server.serve_forever() to make the server to start accepting connections. r) r%r r'rrrrr rs r*create_unix_server$AbstractEventLoop.create_unix_serversD"!r)rrr c# [e7f)zHandle an accepted connection. This is used by servers that accept connections outside of asyncio, but use asyncio to handle connections. This method is a coroutine. When completed, the coroutine returns a (transport, protocol) pair. r)r%r rrrr s r*connect_accepted_socket)AbstractEventLoop.connect_accepted_sockets "!r)rrrrrallow_broadcastrc# [e7f)a8A coroutine which creates a datagram endpoint. This method will try to establish the endpoint in the background. When successful, the coroutine returns a (transport, protocol) pair. protocol_factory must be a callable returning a protocol instance. socket family AF_INET, socket.AF_INET6 or socket.AF_UNIX depending on host (or family if specified), socket type SOCK_DGRAM. reuse_address tells the kernel to reuse a local socket in TIME_WAIT state, without waiting for its natural timeout to expire. If not specified it will automatically be set to True on UNIX. reuse_port tells the kernel to allow this endpoint to be bound to the same port as other existing endpoints are bound to, so long as they all set this flag when being created. This option is not supported on Windows and some UNIX's. If the :py:data:`~socket.SO_REUSEPORT` constant is not defined then this capability is unsupported. allow_broadcast tells the kernel to allow this endpoint to send messages to the broadcast address. sock can optionally be specified in order to use a preexisting socket object. r) r%r r remote_addrrrrrrr0rs r*create_datagram_endpoint*AbstractEventLoop.create_datagram_endpointsB"!rc# [e7f)zRegister read pipe in event loop. Set the pipe to non-blocking mode. protocol_factory should instantiate object with Protocol interface. pipe is a file-like object. Return pair (transport, protocol), where transport supports the ReadTransport interface.rr%r pipes r*connect_read_pipe#AbstractEventLoop.connect_read_pipe "!rc# [e7f)zRegister write pipe in event loop. protocol_factory should instantiate object with BaseProtocol interface. Pipe is file-like object already switched to nonblocking. Return pair (transport, protocol), where transport support WriteTransport interface.rr6s r*connect_write_pipe$AbstractEventLoop.connect_write_piper:r)stdinstdoutstderrc# [e7frCr)r%r cmdr>r?r@rs r*subprocess_shell"AbstractEventLoop.subprocess_shellrrc# [e7frCr)r%r r>r?r@r'rs r*subprocess_exec!AbstractEventLoop.subprocess_execrrc[erCrr%fdr&r's r* add_readerAbstractEventLoop.add_reader'rr-c[erCrr%rJs r* remove_readerAbstractEventLoop.remove_reader*rr-c[erCrrIs r* add_writerAbstractEventLoop.add_writer-rr-c[erCrrNs r* remove_writerAbstractEventLoop.remove_writer0rr-c# [e7frCr)r%rnbytess r* sock_recvAbstractEventLoop.sock_recv5rrc# [e7frCr)r%rbufs r*sock_recv_into AbstractEventLoop.sock_recv_into8rrc# [e7frCr)r%rbufsizes r* sock_recvfromAbstractEventLoop.sock_recvfrom;rrc# [e7frCr)r%rr\rXs r*sock_recvfrom_into$AbstractEventLoop.sock_recvfrom_into>rrc# [e7frCr)r%rdatas r* sock_sendallAbstractEventLoop.sock_sendallArrc# [e7frCr)r%rrgaddresss r* sock_sendtoAbstractEventLoop.sock_sendtoDrrc# [e7frCr)r%rrks r* sock_connectAbstractEventLoop.sock_connectGrrc# [e7frCr)r%rs r* sock_acceptAbstractEventLoop.sock_acceptJrrc# [e7frCr)r%rrrrrs r* sock_sendfileAbstractEventLoop.sock_sendfileMrrc[erCr)r%sigr&r's r*add_signal_handler$AbstractEventLoop.add_signal_handlerSrr-c[erCr)r%rxs r*remove_signal_handler'AbstractEventLoop.remove_signal_handlerVrr-c[erCr)r%factorys r*set_task_factory"AbstractEventLoop.set_task_factory[rr-c[erCrrDs r*get_task_factory"AbstractEventLoop.get_task_factory^rr-c[erCrrDs r*get_exception_handler'AbstractEventLoop.get_exception_handlercrr-c[erCr)r%handlers r*set_exception_handler'AbstractEventLoop.set_exception_handlerfrr-c[erCrr%r)s r*default_exception_handler+AbstractEventLoop.default_exception_handlerirr-c[erCrrs r*rV(AbstractEventLoop.call_exception_handlerlrr-c[erCrrDs r*r!AbstractEventLoop.get_debugqrr-c[erCr)r%enableds r* set_debugAbstractEventLoop.set_debugtrr-rb)rNN)rNrC)Br5r\r]r^r_rrrrrrrrrrrrrrrrrrrrrsocket AF_UNSPEC AI_PASSIVErrr$r(r+r.r3r8r< subprocessPIPErCrFrKrOrRrUrYr]rardrhrlrorrruryr|rrrrrrVr!rrarbr-r*rrs;""""" """ "26D:>"6:""" " =A""" "#!1""59"$4 "&!%!%$"59<"&&##$DT"&!%<"|"#'"%*(,.2-1 "*."4 "&!% "*.""s"&!% ""L"&!% " EI!"./q59d7;$ !"J " "&0__&0oo&0oo"%/OO%/__%/__""""" """""""""(," "" "" """" ""r-rc6\rSrSrSrSrSrSrSrSr Sr g ) rixz-Abstract policy for accessing the event loop.c[e)aGet the event loop for the current context. Returns an event loop object implementing the AbstractEventLoop interface, or raises an exception in case no event loop has been set for the current context and the current policy does not specify to create one. It should never return None.rrDs r*r &AbstractEventLoopPolicy.get_event_loop{s "!r-c[e)z3Set the event loop for the current context to loop.rr%r(s r*r &AbstractEventLoopPolicy.set_event_looprr-c[e)zCreate and return a new event loop object according to this policy's rules. If there's need to set this loop as the event loop for the current context, set_event_loop must be called explicitly.rrDs r*r &AbstractEventLoopPolicy.new_event_loops "!r-c[e)z$Get the watcher for child processes.rrDs r*r )AbstractEventLoopPolicy.get_child_watcherrr-c[e)z$Set the watcher for child processes.r)r%watchers r*r )AbstractEventLoopPolicy.set_child_watcherrr-rbN) r5r\r]r^r_r r r r r rarbr-r*rrxs7"""""r-rc^\rSrSrSrSr"SS\R5rSr Sr Sr S r S r g) BaseDefaultEventLoopPolicyiaDefault policy implementation for accessing the event loop. In this policy, each thread has its own event loop. However, we only automatically create an event loop by default for the main thread; other threads by default have no event loop. Other policies may have different rules (e.g. a single global event loop, or automatically creating an event loop per thread, or using some other notion of context to which an event loop is associated). Nc\rSrSrSrSrSrg)!BaseDefaultEventLoopPolicy._LocaliNFrb)r5r\r]r^r _set_calledrarbr-r*_Localrs  r-rc.UR5UlgrC)r_localrDs r*r+#BaseDefaultEventLoopPolicy.__init__skkm r-cURRcURR(d[R"5[R "5LaSn[ R"S5nU(aRURRS5nUS:XdURS5(dOURnUS- nU(aMRSSK nURS[US 9 UR!UR#55 URRc+[%S [R"5R&-5eURR$![a Nf=f) zfGet the event loop for the current context. Returns an instance of EventLoop or raises an exception. Nrlrr5asynciozasyncio.rzThere is no current event loop) stacklevelz,There is no current event loop in thread %r.)rrr threadingcurrent_thread main_threadr#r$ f_globalsget startswithf_backAttributeErrorwarningswarnDeprecationWarningr r RuntimeErrorname)r%rfmodulers r*r )BaseDefaultEventLoopPolicy.get_event_loops4 KK   %KK++((*i.C.C.EEJ $MM!$ [[__Z8F"i/63D3DZ3P3PA!OJ a  MM:,  E    3 3 5 6 ;;   $M!*!9!9!;!@!@ AB B{{   )"  s!E E-,E-cSURlUb7[U[5(d"[ S[ U5R S35eXRlg)zSet the event loop.TNzs**40r-c2[5R5$)z?Equivalent to calling get_event_loop_policy().new_event_loop().)rr rbr-r*r r Cs " 1 1 33r-c2[5R5$)zBEquivalent to calling get_event_loop_policy().get_child_watcher().)rr rbr-r*r r Hs " 4 4 66r-c4[5RU5$)zIEquivalent to calling get_event_loop_policy().set_child_watcher(watcher).)rr )rs r*r r Ms ! " 4 4W ==r-)rrrr forkc[b[R5[l[ S5 [ R "S5 g)Nr2)rrrrrsignal set_wakeup_fdrbr-r*on_forkrks0  )(B(I(I(K  %$R r-)after_in_child)/r___all__rrrrrr#rrrrrrrrrrLockrrrrrrrrrrr r r r r _py__get_running_loop_py__set_running_loop_py_get_running_loop_py_get_event_loop_asyncio_c__get_running_loop_c__set_running_loop_c_get_running_loop_c_get_event_loop ImportErrorhasattrrregister_at_forkrbr-r*rs\'   LL^<&<~/!/!dX"X"v ""DD$!8D$V 9??   1:  4 1 4 7 >*)'# '<< -,*& 2v!w/  s> C55C>=C>