Server IP : 184.154.167.98 / Your IP : 18.117.101.7 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib64/python3.8/asyncio/__pycache__/ |
Upload File : |
U e5d � @ sB d Z ddlmZ ddlmZ ddlmZ dd�dd�Zd d � ZdS ))�run� )� coroutines)�events)�tasksN)�debugc C s� t �� dk rtd��t�| �s,td�| ���t �� }z*t �|� |dk rR|� |� |�| �W �S zt |� |�|�� � W 5 t �d� |� � X X 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_loop�close�_cancel_all_tasks�run_until_completeZshutdown_asyncgensZ set_debug)�mainr �loop� r �'/usr/lib64/python3.8/asyncio/runners.pyr s"