Server IP : 162.213.251.212 / Your IP : 18.117.12.247 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/alt/python310/lib64/python3.10/asyncio/__pycache__/ |
Upload File : |
o �?Og8 � @ sB d Z ddlmZ ddlmZ ddlmZ dd�dd�Zd d � ZdS ))�run� )� coroutines)�events)�tasksN)�debugc C s� t �� dur td��t�| �std�| ���t �� }z;t �|� |dur)|� |� |� | �W zt|� |� |�� � |� |� � � W t �d� |�� S t �d� |�� w zt|� |� |�� � |� |� � � W t �d� |�� w t �d� |�� w )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 �6/opt/alt/python310/lib64/python3.10/asyncio/runners.pyr s8 � � � � r c C st t �| �}|s d S |D ]}|�� q| �t j|ddi�� |D ]}|�� r&q|�� d ur7| �d|�� |d�� qd S )NZreturn_exceptionsTz1unhandled 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 7 s"