+
    € ’eC  ã                   óÌ   € Rt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^RIHt ^RIH	t	 ^RIH
t
 ^RIHt ^RIHt  ! R R]P                  4      t ! R	 R 4      tR
RRR/R ltR tR# )ÚRunnerN)Ú
coroutines)Úevents)Ú
exceptions)Útasks)Ú	constantsc                   ó"   € ] tR t^tRtRtRtRtR# )Ú_StateÚcreatedÚinitializedÚclosed© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚCREATEDÚINITIALIZEDÚCLOSEDÚ__static_attributes__r   ó    Ú]/home/ubuntu/.hermes/tools/python-3.14.9+20261021-linux-x64/lib/python3.14/asyncio/runners.pyr	   r	      s   † Ø€GØ€KØ„Fr   r	   c                   óh   a € ] tR t^t o RtRRRR/R ltR tR tR tR	 t	R
R/R lt
R tR tRtV tR# )r   aù  A context manager that controls event loop life cycle.

The context manager always creates a new event loop,
allows to run async functions inside it,
and properly finalizes the loop at the context manager exit.

If debug is True, the event loop will be run in debug mode.
If loop_factory is passed, it is used for new event loop creation.

asyncio.run(main(), debug=True)

is a shortcut for

with asyncio.Runner(debug=True) as runner:
    runner.run(main())

The run() method can be called multiple times within the runner's
context.

This can be useful for interactive console (e.g. IPython),
unittest runners, console tools, -- everywhere when async code
is called from existing sync framework and where the preferred single
asyncio.run() call doesn't work.

ÚdebugNÚloop_factoryc               ó€   € \         P                  V n        Wn        W n        R V n        R V n        ^ V n        RV n        R # )NF)	r	   r   Ú_stateÚ_debugÚ_loop_factoryÚ_loopÚ_contextÚ_interrupt_countÚ_set_event_loop)Úselfr   r   s   &$$r   Ú__init__ÚRunner.__init__2   s6   € Ü—n‘nˆŒØŒØ)ÔØˆŒ
ØˆŒØ !ˆÔØ$ˆÖr   c                ó&   € V P                  4        V # ©N)Ú
_lazy_init©r#   s   &r   Ú	__enter__ÚRunner.__enter__;   s   € Ø�‰ÔØˆr   c                ó&   € V P                  4        R # r'   )Úclose)r#   Úexc_typeÚexc_valÚexc_tbs   &&&&r   Ú__exit__ÚRunner.__exit__?   s   € Ø�
‰
Žr   c                ój  € V P                   \        P                  Jd   R#  V P                  p\	        V4       VP                  VP                  4       4       VP                  VP                  \        P                  4      4       V P                  '       d   \        P                  ! R4       VP                  4        RV n        \        P                  V n         R#   T P                  '       d   \        P                  ! R4       XP                  4        RT n        \        P                  T n         i ; i)zShutdown and close event loop.N)r   r	   r   r   Ú_cancel_all_tasksÚrun_until_completeÚshutdown_asyncgensÚshutdown_default_executorr   ÚTHREAD_JOIN_TIMEOUTr"   r   Úset_event_loopr-   r   )r#   Úloops   & r   r-   ÚRunner.closeB   s×   € à�;‰;œf×0Ñ0Ó0Ùð	(Ø—:‘:ˆDÜ˜dÔ#Ø×#Ñ# D×$;Ñ$;Ó$=Ô>Ø×#Ñ#Ø×.Ñ.¬y×/LÑ/LÓMôOð ×#×#Ð#Ü×%Ò% dÔ+Ø�J‰JŒLØˆDŒJÜ Ÿ-™-ˆDŽKøð	 ×#×#Ð#Ü×%Ò% dÔ+Ø�J‰JŒLØˆDŒJÜ Ÿ-™-ˆD�Kús   ¢A$C ÃAD2c                ó:   € V P                  4        V P                  # )zReturn embedded event loop.)r(   r   r)   s   &r   Úget_loopÚRunner.get_loopS   s   € à�‰ÔØ�z‰zÐr   Úcontextc               óT  € \         P                  ! 4       e   \        R4      hV P                  4        \        P
                  ! V4      '       g4   \        P                  ! V4      '       d   R pV! V4      pM\        R4      hVf   V P                  pV P                  P                  WR7      p\        P                  ! 4       \        P                  ! 4       J d€   \        P                   ! \        P"                  4      \        P$                  J dJ   \&        P(                  ! V P*                  VR7      p \        P                  ! \        P"                  V4       MRp^ V n         V P                  P1                  V4      Ve^   \        P                   ! \        P"                  4      VJ d5   \        P                  ! \        P"                  \        P$                  4       # # #   \,         d    Rp L“i ; i  \2        P4                   d;    T P.                  ^ 8”  d(   \7        TRR4      pTe   T! 4       ^ 8X  d   \9        4       hh i ; i  Te^   \        P                   ! \        P"                  4      TJ d5   \        P                  ! \        P"                  \        P$                  4       i i i ; i)z$Run code in the embedded event loop.Nz7Runner.run() cannot be called from a running event loopc              “   ó"   "  € V G R j  x€L
 #  L5ir'   r   )Ú	awaitables   &r   Ú_wrap_awaitableÚ#Runner.run.<locals>._wrap_awaitablec   s   é € Ø!*Ÿ?Ð*™?ùs   ‚ˆ‰z:An asyncio.Future, a coroutine or an awaitable is required)r?   )Ú	main_taskÚuncancel)r   Ú_get_running_loopÚRuntimeErrorr(   r   ÚiscoroutineÚinspectÚisawaitableÚ	TypeErrorr    r   Úcreate_taskÚ	threadingÚcurrent_threadÚmain_threadÚsignalÚ	getsignalÚSIGINTÚdefault_int_handlerÚ	functoolsÚpartialÚ
_on_sigintÚ
ValueErrorr!   r5   r   ÚCancelledErrorÚgetattrÚKeyboardInterrupt)r#   Úcoror?   rC   ÚtaskÚsigint_handlerrF   s   &&$    r   ÚrunÚ
Runner.runX   s  € ä×#Ò#Ó%Ò1äØIóKð Kð 	�‰Ôä×%Ò% d×+Ò+Ü×"Ò" 4×(Ò(ò+ñ ' tÓ,‘äð !8ó 9ð 9ð Š?Ø—m‘mˆGà�z‰z×%Ñ% dÐ%Ó<ˆä×$Ò$Ó&¬)×*?Ò*?Ó*AÓAÜ× Ò ¤§¡Ó/´6×3MÑ3MÓMä&×.Ò.¨t¯©È$ÔOˆNð&Ü—’œfŸm™m¨^Õ<ð "ˆNà !ˆÔð	IØ—:‘:×0Ñ0°Ó6ð Ò*Ü×$Ò$¤V§]¡]Ó3°~ÓEä—’œfŸm™m¬V×-GÑ-GÕHð Fð +øô% ô &ð "&’ð	&ûô ×(Ñ(ô 	Ø×$Ñ$ qÔ(Ü" 4¨°TÓ:�ØÒ'©H«J¸!¬OÜ+Ó-Ð-Øð	ûð Ò*Ü×$Ò$¤V§]¡]Ó3°~ÓEä—’œfŸm™m¬V×-GÑ-GÕHð Fð +ús,   Ä3%G Å#G2 ÇG/Ç.G/Ç2AIÉI ÉA#J'c                óJ  € V P                   \        P                  J d   \        R 4      hV P                   \        P                  J d   R# V P
                  fU   \        P                  ! 4       V n        V P                  '       g(   \        P                  ! V P                  4       RV n	        MV P                  4       V n        V P                  e&   V P                  P                  V P                  4       \        P                  ! 4       V n        \        P                  V n         R# )zRunner is closedNT)r   r	   r   rH   r   r   r   Únew_event_loopr   r"   r9   r   Ú	set_debugÚcontextvarsÚcopy_contextr    r)   s   &r   r(   ÚRunner._lazy_init�   sÅ   € Ø�;‰;œ&Ÿ-™-Ó'ÜÐ1Ó2Ð2Ø�;‰;œ&×,Ñ,Ó,ÙØ×ÑÒ%Ü×.Ò.Ó0ˆDŒJØ×'×'Ð'ô ×%Ò% d§j¡jÔ1Ø'+�Ô$øà×+Ñ+Ó-ˆDŒJØ�;‰;Ò"Ø�J‰J× Ñ  §¡Ô-Ü#×0Ò0Ó2ˆŒÜ×(Ñ(ˆŽr   c                óò   € V ;P                   ^,          un         V P                   ^8X  dE   VP                  4       '       g/   VP                  4        V P                  P	                  R 4       R# \        4       h)é   c                  ó   € R # r'   r   r   r   r   Ú<lambda>Ú#Runner._on_sigint.<locals>.<lambda>¥   s   € ±Dr   N)r!   ÚdoneÚcancelr   Úcall_soon_threadsafer[   )r#   ÚsignumÚframerE   s   &&&&r   rW   ÚRunner._on_sigint    sW   € Ø×Ò Õ"ÕØ× Ñ  AÔ%¨i¯n©n×.>Ò.>Ø×ÑÔà�J‰J×+Ñ+©LÔ9ÙÜÓ!Ð!r   )r    r   r!   r   r   r"   r   )r   r   r   r   Ú__doc__r$   r*   r1   r-   r=   r_   r(   rW   r   Ú__classdictcell__)Ú__classdict__s   @r   r   r      sO   ø‡ € ñð8% ð %°4ô %òòò(ò"ð
3I 4ô 3Iòj)÷&"ð "r   r   r   c               óÎ   € \         P                  ! 4       e   \        R4      h\        WR7      ;_uu_ 4       pVP	                  V 4      uuRRR4       #   + '       g   i     R# ; i)au  Execute the coroutine and return the result.

This function runs the passed coroutine, taking care of
managing the asyncio event loop, finalizing asynchronous
generators and closing the default executor.

This function cannot be called when another asyncio event loop is
running in the same thread.

If debug is True, the event loop will be run in debug mode.
If loop_factory is passed, it is used for new event loop creation.

This function always creates a new event loop and closes it at the end.
It should be used as a main entry point for asyncio programs, and should
ideally only be called once.

The executor is given a timeout duration of 5 minutes to shutdown.
If the executor hasn't finished within that duration, a warning is
emitted and the executor is closed.

Example:

    async def main():
        await asyncio.sleep(1)
        print('hello')

    asyncio.run(main())
Nz8asyncio.run() cannot be called from a running event loop)r   r   )r   rG   rH   r   r_   )Úmainr   r   Úrunners   &$$ r   r_   r_   ª   sO   € ô: ×ÒÓ!Ò-äØFóHð 	Hô 
�e×	7Õ	7¸6Ø�z‰z˜$Ó÷ 
8×	7×	7Ó	7ús   ·AÁA$	c           	      óv  € \         P                  ! V 4      pV'       g   R # V F  pVP                  4        K  	  V P                  \         P                  ! VRR/ 4       V FT  pVP                  4       '       d   K  VP                  4       f   K/  V P                  RRRVP                  4       RV/4       KV  	  R # )NÚreturn_exceptionsTÚmessagez1unhandled exception during asyncio.run() shutdownÚ	exceptionr]   )r   Ú	all_tasksrm   r5   ÚgatherÚ	cancelledr{   Úcall_exception_handler)r:   Ú	to_cancelr]   s   &  r   r4   r4   Ð   s˜   € Ü—’ Ó%€IßÙãˆØ�‰Žñ ð 	×ÑœEŸLšL¨)ÐLÀtÑLÔMãˆØ�>‰>×ÒÙØ�>‰>ÓÔ'Ø×'Ñ'ØÐNØ˜TŸ^™^Ó-Ø˜ð)ö ó	 r   )r   r_   )Ú__all__rd   ÚenumrU   rJ   rN   rQ   Ú r   r   r   r   r   ÚEnumr	   r   r_   r4   r   r   r   Ú<module>r…      sa   ðØ
€ã Û Û Û Û Û Ý Ý Ý Ý Ý ôˆT�Y‰Yô ÷R"ñ R"ðj# �tð # ¨$ô # ôLr   