$48 GRAYBYTE WORDPRESS FILE MANAGER $50

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.160.161 | ADMIN IP 216.73.216.86
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python312/lib64/python3.12/asyncio/__pycache__/

HOME
Current File : /opt/alt/python312/lib64/python3.12/asyncio/__pycache__//runners.cpython-312.pyc
�

=��i>���dZddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	ddlm
Z
ddlmZGd	�d
ej�Z
Gd�d�Zddd
�d�Zd�Zy))�Runner�run�N�)�
coroutines)�events)�
exceptions)�tasks)�	constantsc��eZdZdZdZdZy)�_State�created�initialized�closedN)�__name__�
__module__�__qualname__�CREATED�INITIALIZED�CLOSED���6/opt/alt/python312/lib64/python3.12/asyncio/runners.pyrrs���G��K�
�Frrc�N�eZdZdZddd�d�Zd�Zd�Zd�Zd�Zdd	�d
�Z	d�Z
d�Zy)
ra5A 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��debug�loop_factoryc��tj|_||_||_d|_d|_d|_d|_y)NrF)	rr�_state�_debug�
_loop_factory�_loop�_context�_interrupt_count�_set_event_loop)�selfrrs   r�__init__zRunner.__init__0s:���n�n������)�����
���
� !���$��rc�&�|j�|S�N)�
_lazy_init�r%s r�	__enter__zRunner.__enter__9s�������rc�$�|j�yr()�close)r%�exc_type�exc_val�exc_tbs    r�__exit__zRunner.__exit__=s���
�
�rc�F�|jtjury	|j}t	|�|j|j
��|j|jtj��|jrtjd�|j�d|_tj|_y#|jrtjd�j�d|_tj|_wxYw)zShutdown and close event loop.N)rrrr!�_cancel_all_tasks�run_until_complete�shutdown_asyncgens�shutdown_default_executorr
�THREAD_JOIN_TIMEOUTr$r�set_event_loopr-r)r%�loops  rr-zRunner.close@s����;�;�f�0�0�0��	(��:�:�D��d�#��#�#�D�$;�$;�$=�>��#�#��.�.�y�/L�/L�M�
O��#�#��%�%�d�+��J�J�L��D�J� �-�-�D�K��	�#�#��%�%�d�+��J�J�L��D�J� �-�-�D�K�s
�A$C�AD c�:�|j�|jS)zReturn embedded event loop.)r)r!r*s r�get_loopzRunner.get_loopQs�������z�z�r��contextc���tj|�stdj|���t	j
��t
d��|j�|�|j}|jj||��}tj�tj�urztjtj �tj"urGt%j&|j(|��}	tjtj |�nd}d|_	|jj-|�|�Ytjtj �|ur3tjtj tj"�SSS#t$rd}Y��wxYw#t.j0$r4|j*dkDr#t3|dd�}|�|�dk(r
t5���wxYw#|�Ytjtj �|ur3tjtj tj"�wwwxYw)z/Run a coroutine inside the embedded event loop.z"a coroutine was expected, got {!r}Nz7Runner.run() cannot be called from a running event loopr<)�	main_taskr�uncancel)r�iscoroutine�
ValueError�formatr�_get_running_loop�RuntimeErrorr)r"r!�create_task�	threading�current_thread�main_thread�signal�	getsignal�SIGINT�default_int_handler�	functools�partial�
_on_sigintr#r4r�CancelledError�getattr�KeyboardInterrupt)r%�coror=�task�sigint_handlerr@s      rrz
Runner.runVs����%�%�d�+��A�H�H��N�O�O��#�#�%�1��I�K�
K�	
�����?��m�m�G��z�z�%�%�d�G�%�<���$�$�&�)�*?�*?�*A�A�� � ����/�6�3M�3M�M�&�.�.�t���$�O�N�
&��
�
�f�m�m�^�<�"�N� !���	I��:�:�0�0��6��*��$�$�V�]�]�3�~�E��
�
�f�m�m�V�-G�-G�H�F�+��%�
&�"&��	
&���(�(�	��$�$�q�(�"�4��T�:���'�H�J�!�O�+�-�-��	���*��$�$�V�]�]�3�~�E��
�
�f�m�m�V�-G�-G�H�F�+�s,�$F,�6F=�,F:�9F:�=AH�H�AI$c�$�|jtjurtd��|jtjury|j
�Lt
j�|_|js<t
j|j�d|_	n|j�|_|j�%|jj|j�tj�|_tj|_y)NzRunner is closedT)rrrrErr r�new_event_loopr!r$r8r�	set_debug�contextvars�copy_contextr"r*s rr)zRunner._lazy_init�s����;�;�&�-�-�'��1�2�2��;�;�&�,�,�,�����%��.�.�0�D�J��'�'��%�%�d�j�j�1�'+��$��+�+�-�D�J��;�;�"��J�J� � ����-�#�0�0�2��
��(�(��rc���|xjdz
c_|jdk(r=|j�s-|j�|jj	d��yt��)Nrc��yr(rrrr�<lambda>z#Runner._on_sigint.<locals>.<lambda>�s��Dr)r#�done�cancelr!�call_soon_threadsaferS)r%�signum�framer?s    rrPzRunner._on_sigint�sT������"��� � �A�%�i�n�n�.>������J�J�+�+�L�9���!�!r)rrr�__doc__r&r+r1r-r;rr)rPrrrrrs=���6!%�4�%���(�"�
$(�+I�Z)�&"rrrc��tj��td��t||��5}|j	|�cddd�S#1swYyxYw)a�Execute the coroutine and return the result.

    This function runs the passed coroutine, taking care of
    managing the asyncio event loop, finalizing asynchronous
    generators and closing the default executor.

    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.
    If loop_factory is passed, it is used for new event loop creation.

    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.

    The executor is given a timeout duration of 5 minutes to shutdown.
    If the executor hasn't finished within that duration, a warning is
    emitted and the executor is closed.

    Example:

        async def main():
            await asyncio.sleep(1)
            print('hello')

        asyncio.run(main())
    Nz8asyncio.run() cannot be called from a running event loopr)rrDrErr)�mainrr�runners    rrr�sK��:���!�-��F�H�	H�
�e�,�	7�6��z�z�$��
8�	7�	7�s�A�Ac�B�tj|�}|sy|D]}|j��|jtj|ddi��|D]G}|j�r�|j
���%|jd|j
�|d���Iy)N�return_exceptionsTz1unhandled exception during asyncio.run() shutdown)�message�	exceptionrU)r	�	all_tasksr`r4�gather�	cancelledrk�call_exception_handler)r9�	to_cancelrUs   rr3r3�s�������%�I��������
��	���E�L�L�)�L�t�L�M����>�>����>�>��'��'�'�N�!�^�^�-��)�
�	r)�__all__rZ�enumrNrGrJ�rrrr	r
�Enumrrrr3rrr�<module>rusW��
������
�������T�Y�Y��I"�I"�X�$�# �Lr

Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 May 2026 11.11 PM
root / linksafe
0755
__init__.cpython-312.opt-1.pyc
1.438 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__init__.cpython-312.opt-2.pyc
1.388 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__init__.cpython-312.pyc
1.438 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__main__.cpython-312.opt-1.pyc
5.343 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__main__.cpython-312.opt-2.pyc
5.343 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__main__.cpython-312.pyc
5.343 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_events.cpython-312.opt-1.pyc
84.628 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_events.cpython-312.opt-2.pyc
75.438 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_events.cpython-312.pyc
84.729 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_futures.cpython-312.opt-1.pyc
3.029 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_futures.cpython-312.opt-2.pyc
2.797 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_futures.cpython-312.pyc
3.029 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_subprocess.cpython-312.opt-1.pyc
15.517 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_subprocess.cpython-312.opt-2.pyc
15.426 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_subprocess.cpython-312.pyc
15.717 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_tasks.cpython-312.opt-1.pyc
3.998 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_tasks.cpython-312.opt-2.pyc
3.998 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
base_tasks.cpython-312.pyc
3.998 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
constants.cpython-312.opt-1.pyc
0.948 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
constants.cpython-312.opt-2.pyc
0.948 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
constants.cpython-312.pyc
0.948 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
coroutines.cpython-312.opt-1.pyc
3.652 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
coroutines.cpython-312.opt-2.pyc
3.566 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
coroutines.cpython-312.pyc
3.696 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
events.cpython-312.opt-1.pyc
35.896 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
events.cpython-312.opt-2.pyc
26.837 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
events.cpython-312.pyc
35.896 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
exceptions.cpython-312.opt-1.pyc
3.024 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
exceptions.cpython-312.opt-2.pyc
2.407 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
exceptions.cpython-312.pyc
3.024 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
format_helpers.cpython-312.opt-1.pyc
3.792 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
format_helpers.cpython-312.opt-2.pyc
3.568 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
format_helpers.cpython-312.pyc
3.792 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
futures.cpython-312.opt-1.pyc
16.564 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
futures.cpython-312.opt-2.pyc
13.265 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
futures.cpython-312.pyc
16.916 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
locks.cpython-312.opt-1.pyc
26.792 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
locks.cpython-312.opt-2.pyc
19.792 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
locks.cpython-312.pyc
26.792 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
log.cpython-312.opt-1.pyc
0.29 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
log.cpython-312.opt-2.pyc
0.256 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
log.cpython-312.pyc
0.29 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
mixins.cpython-312.opt-1.pyc
1.02 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
mixins.cpython-312.opt-2.pyc
0.989 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
mixins.cpython-312.pyc
1.02 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
proactor_events.cpython-312.opt-1.pyc
43.023 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
proactor_events.cpython-312.opt-2.pyc
42.656 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
proactor_events.cpython-312.pyc
43.713 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
protocols.cpython-312.opt-1.pyc
8.592 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
protocols.cpython-312.opt-2.pyc
3.696 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
protocols.cpython-312.pyc
8.592 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
queues.cpython-312.opt-1.pyc
11.677 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
queues.cpython-312.opt-2.pyc
9.139 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
queues.cpython-312.pyc
11.677 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
runners.cpython-312.opt-1.pyc
9.771 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
runners.cpython-312.opt-2.pyc
7.93 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
runners.cpython-312.pyc
9.771 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
selector_events.cpython-312.opt-1.pyc
61.715 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
selector_events.cpython-312.opt-2.pyc
59.753 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
selector_events.cpython-312.pyc
61.85 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
sslproto.cpython-312.opt-1.pyc
40.842 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
sslproto.cpython-312.opt-2.pyc
36.993 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
sslproto.cpython-312.pyc
40.926 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
staggered.cpython-312.opt-1.pyc
6.262 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
staggered.cpython-312.opt-2.pyc
4.189 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
staggered.cpython-312.pyc
6.41 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
streams.cpython-312.opt-1.pyc
32.198 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
streams.cpython-312.opt-2.pyc
26.547 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
streams.cpython-312.pyc
32.6 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
subprocess.cpython-312.opt-1.pyc
11.804 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
subprocess.cpython-312.opt-2.pyc
11.688 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
subprocess.cpython-312.pyc
11.826 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
taskgroups.cpython-312.opt-1.pyc
8.165 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
taskgroups.cpython-312.opt-2.pyc
7.504 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
taskgroups.cpython-312.pyc
8.26 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
tasks.cpython-312.opt-1.pyc
39.258 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
tasks.cpython-312.opt-2.pyc
30.663 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
tasks.cpython-312.pyc
39.381 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
threads.cpython-312.opt-1.pyc
1.244 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
threads.cpython-312.opt-2.pyc
0.8 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
threads.cpython-312.pyc
1.244 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
timeouts.cpython-312.opt-1.pyc
7.425 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
timeouts.cpython-312.opt-2.pyc
5.866 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
timeouts.cpython-312.pyc
7.63 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
transports.cpython-312.opt-1.pyc
13.672 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
transports.cpython-312.opt-2.pyc
8.469 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
transports.cpython-312.pyc
13.691 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
trsock.cpython-312.opt-1.pyc
4.976 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
trsock.cpython-312.opt-2.pyc
4.729 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
trsock.cpython-312.pyc
4.976 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
unix_events.cpython-312.opt-1.pyc
65.485 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
unix_events.cpython-312.opt-2.pyc
60.557 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
unix_events.cpython-312.pyc
66.156 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
windows_events.cpython-312.opt-1.pyc
40.521 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
windows_events.cpython-312.opt-2.pyc
39.48 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
windows_events.cpython-312.pyc
40.565 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
windows_utils.cpython-312.opt-1.pyc
7.024 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
windows_utils.cpython-312.opt-2.pyc
6.617 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
windows_utils.cpython-312.pyc
7.177 KB
20 Apr 2026 7.46 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF