π FileMgr
π
/
lib64
/
python3.9
/
asyncio
/
__pycache__
βοΈ /
β¬ Kembali
a οΏ½iM οΏ½ @ 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"