| Server IP : 118.27.122.248 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/asyncio/__pycache__/ |
Upload File : |
B
YI~d� � @ sB d Z ddlmZ ddlmZ ddlmZ dd�dd�Zd d
� ZdS ))�run� )�
coroutines)�events)�tasksF)�debugc C s� t �� d k rtd��t�| �s,td�| ���t �� }zt �|� |� |� |�
| �S zt|� |�
|�� � W d 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_loopZ set_debug�run_until_complete�_cancel_all_tasksZshutdown_asyncgens�close)�mainr �loop� r �4/opt/alt/python37/lib64/python3.7/asyncio/runners.pyr s
r c C s~ t �| �}|sd S x|D ]}|�� qW | �t j|| dd��� x8|D ]0}|�� rTqF|�� d k rF| �d|�� |d�� qFW d S )NT)r Zreturn_exceptionsz1unhandled 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 5 s
r N)�__all__� r r r r r r r r r �<module> s
-