ok
Direktori : /opt/alt/python38/lib64/python3.8/asyncio/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/asyncio/__pycache__/runners.cpython-38.opt-2.pyc |
U .��c � @ 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"