python (3.11.7)
    e                         d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm	Z	 ddlm
Z
 ddlmZ  G d d	ej                  Z
 G d
 d          Zddd
Zd ZdS ))Runnerrun    N   )
coroutines)events)
exceptions)tasksc                       e Zd ZdZdZdZdS )_StatecreatedinitializedclosedN)__name__
__module____qualname__CREATEDINITIALIZEDCLOSED     C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/asyncio/runners.pyr   r      s        GK
FFFr   r   c                   P    e Zd ZdZddddZd Zd Zd Zd Zdd	d
Z	d Z
d ZdS )
r   a5  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.
    N)debugloop_factoryc                |    t           j        | _        || _        || _        d | _        d | _        d| _        d| _        d S )Nr   F)	r   r   _state_debug
_loop_factory_loop_context_interrupt_count_set_event_loop)selfr   r   s      r   __init__zRunner.__init__1   s>