AlkantarClanX12

Your IP : 3.133.109.58


Current Path : /proc/self/root/usr/lib64/python3.8/asyncio/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib64/python3.8/asyncio/__pycache__/runners.cpython-38.opt-2.pyc

U

e5d�@sBdZddlmZddlmZddlmZdd�dd�Zd	d
�ZdS))�run�)�
coroutines)�events)�tasksN)�debugcCs�t��dk	rtd��t�|�s,td�|���t��}z*t�|�|dk	rR|�
|�|�|�W�Szt
|�|�|���W5t�d�|�	�XXdS)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_loop�close�_cancel_all_tasks�run_until_completeZshutdown_asyncgensZ	set_debug)�mainr�loop�r�'/usr/lib64/python3.8/asyncio/runners.pyrs"�



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

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