관리-도구
편집 파일: runners.cpython-38.opt-2.pyc
U e5d � @ 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 �'/usr/lib64/python3.8/asyncio/runners.pyr s"