IP : 3.129.194.133Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
./
../
lib64/
bind/
../
groff/
../
dovecot/
../
python3.8/
asyncio/
./
runners.py/
/
__all__ = 'run',
from . import coroutines from . import events from . import tasks
def run(main, *, debug=None): """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.
for task in to_cancel: if task.cancelled(): continue if task.exception() is not None: loop.call_exception_handler({ 'message': 'unhandled exception during asyncio.run() shutdown', 'exception': task.exception(), 'task': task, })