AlkantarClanX12

Your IP : 18.117.168.71


Current Path : /opt/alt/python39/lib64/python3.9/asyncio/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/asyncio/__pycache__/runners.cpython-39.opt-2.pyc

a

R�fM�@sBdZddlmZddlmZddlmZdd�dd�Zd	d
�ZdS))�run�)�
coroutines)�events)�tasksN)�debugcCsVt��durtd��t�|�s,td�|���t��}z�t�|�|durR|�	|�|�
|�Wz:t|�|�
|���|�
|�
��Wt�d�|��St�d�|��0Sz:t|�|�
|���|�
|�
��Wt�d�|��nt�d�|��0nRz:t|�|�
|���|�
|�
��Wt�d�|��nt�d�|��00dS)Nz8asyncio.run() cannot be called from a running event loopz"a coroutine was expected, got {!r})rZ_get_running_loop�RuntimeErrorrZiscoroutine�
ValueError�formatZnew_event_loopZset_event_loopZ	set_debug�run_until_complete�_cancel_all_tasksZshutdown_asyncgensZshutdown_default_executor�close)�mainr�loop�r�4/opt/alt/python39/lib64/python3.9/asyncio/runners.pyrsJ�





�

�

�
�

�
rcCsvt�|�}|sdS|D]}|��q|�tj||dd���|D]0}|��rNq@|��dur@|�d|��|d��q@dS)NT)rZreturn_exceptionsz1unhandled exception during asyncio.run() shutdown)�message�	exception�task)rZ	all_tasksZcancelr
Z_gatherZ	cancelledrZcall_exception_handler)rZ	to_cancelrrrrr7s"

��r)�__all__�rrrrrrrrr�<module>s
/