o
0¦i8 ã @ sB d Z ddlmZ ddlmZ ddlmZ ddœdd„Zd d
„ ZdS ))Úruné )Ú
coroutines)Úevents)ÚtasksN)Údebugc C sþ t ¡ d urtdƒ‚t | ¡std | ¡ƒ‚t ¡ }z;t |¡ |d ur*| |¡ |
| ¡W zt|ƒ |
| ¡ ¡ |
|
¡ ¡ W t d ¡ | ¡ S t d ¡ | ¡ w zt|ƒ |
| ¡ ¡ |
|
¡ ¡ W t d ¡ | ¡ w t d ¡ | ¡ w )Nz8asyncio.run() cannot be called from a running event loopz"a coroutine was expected, got {!r})r Z_get_running_loopÚRuntimeErrorr ZiscoroutineÚ
ValueErrorÚformatZnew_event_loopZset_event_loopZ set_debugÚrun_until_completeÚ_cancel_all_tasksZshutdown_asyncgensZshutdown_default_executorÚclose)Úmainr Úloop© r ú6/opt/alt/python310/lib64/python3.10/asyncio/runners.pyr s: ÿ
ÿ
ú
ÿ
r c C st t | ¡}|s d S |D ]}| ¡ q| t j|ddiŽ¡ |D ]}| ¡ r&q| ¡ d ur7| d| ¡ |dœ¡ qd S )NZreturn_exceptionsTz1unhandled exception during asyncio.run() shutdown)ÚmessageÚ exceptionÚtask)r Z all_tasksZcancelr
ZgatherZ cancelledr Zcall_exception_handler)r Z to_cancelr r r r r 7 s"
ý€ür )Ú__all__Ú r r r r r r r r r Ú