Graybyt3 Was Here
Linux vps-4656817-x.dattaweb.com 5.14.0-570.33.2.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 14 07:37:35 EDT 2025 x86_64
Apache
200.58.107.103
/
lib64
/
python3.9
/
asyncio
/
__pycache__
[ HOME ]
Exec
Submit
File Name : runners.cpython-39.opt-1.pyc
a �DOgM � @ sB d Z ddlmZ ddlmZ ddlmZ dd�dd�Zd d � ZdS ))�run� )� coroutines)�events)�tasksN)�debugc C sV t �� durtd��t�| �s,td�| ���t �� }z�t �|� |durR|� |� |� | �W z:t|� |� |�� � |� |� � � W t �d� |�� S t �d� |�� 0 S z:t|� |� |�� � |� |� � � W t �d� |�� nt �d� |�� 0 nRz:t|� |� |�� � |� |� � � W t �d� |�� nt �d� |�� 0 0 dS )a� Execute the coroutine and return the result. This function runs the passed coroutine, taking care of managing the asyncio event loop and finalizing asynchronous generators. This function cannot be called when another asyncio event loop is running in the same thread. If debug is True, the event loop will be run in debug mode. This function always creates a new event loop and closes it at the end. It should be used as a main entry point for asyncio programs, and should ideally only be called once. Example: async def main(): await asyncio.sleep(1) print('hello') asyncio.run(main()) 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_asyncgensZshutdown_default_executor�close)�mainr �loop� r �'/usr/lib64/python3.9/asyncio/runners.pyr sJ � � � � � � r c C sv t �| �}|sd S |D ]}|�� q| �t j|| dd��� |D ]0}|�� rNq@|�� d ur@| �d|�� |d�� q@d S )NT)r Zreturn_exceptionsz1unhandled exception during asyncio.run() shutdown)�message� exception�task)r Z all_tasks�cancelr Z_gather� cancelledr Zcall_exception_handler)r Z to_cancelr r r r r 7 s"