Your IP : 3.129.73.6
U
i�f � @ sB d Z ddlmZ ddlmZ ddlmZ dd�dd�Zd d
� ZdS ))�run� )�
coroutines)�events)�tasksN)�debugc C s� t �� d k rtd��t�| �s,td�| ���t �� }z*t �|� |d k rR|�
|� |�| �W �S zt
|� |�|�� � W 5 t �d � |� � X X d S )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_loop�close�_cancel_all_tasks�run_until_completeZshutdown_asyncgensZ set_debug)�mainr �loop� r �4/opt/alt/python38/lib64/python3.8/asyncio/runners.pyr s"