*jB S r SSKrSSKrSSKrSSKrSSKrSSKJr SSKJr SSKJ r SSKJ r SSKJr " S S \R 5 r " S S5 rSSS .S jrS rg))Runnerrun N ) coroutines)events) exceptions)tasks) constantsc \ rS rSrSrSrSrSrg)_State createdinitializedclosed N)__name__ __module____qualname____firstlineno__CREATEDINITIALIZEDCLOSED__static_attributes__r 6/opt/alt/python313/lib64/python3.13/asyncio/runners.pyr r s GK Fr r c Z \ rS rSrSrSSS.S jrS rS rS rS r SS .S jr S rS rSr g)r a A context manager that controls event loop life cycle. The context manager always creates a new event loop, allows to run async functions inside it, and properly finalizes the loop at the context manager exit. If debug is True, the event loop will be run in debug mode. If loop_factory is passed, it is used for new event loop creation. asyncio.run(main(), debug=True) is a shortcut for with asyncio.Runner(debug=True) as runner: runner.run(main()) The run() method can be called multiple times within the runner's context. This can be useful for interactive console (e.g. IPython), unittest runners, console tools, -- everywhere when async code is called from existing sync framework and where the preferred single asyncio.run() call doesn't work. Ndebugloop_factoryc ~ [ R U l Xl X l S U l S U l SU l SU l g )Nr F) r r _state_debug _loop_factory_loop_context_interrupt_count_set_event_loop)selfr r s r __init__Runner.__init__1 s6 nn) !$r c &