ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/__pycache__/locks.cpython-311.pyc

�

�܋fp��D�ddlZddlZddlmZmZmZGd�d��ZdS)�N)�Any�Deque�Optionalc�^�eZdZdZdejddfd�Zd
deeddfd�Z	de
fd�Zdd	�ZdS)�EventResultOrErrorz�Event asyncio lock helper class.

    Wraps the Event asyncio lock allowing either to awake the
    locked Tasks without any error or raising an exception.

    thanks to @vorpalsmith for the simple design.
    �loop�returnNc��||_d|_tj��|_tj��|_dS�N)�_loop�_exc�asyncio�Event�_event�collections�deque�_waiters)�selfrs  �D/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/locks.py�__init__zEventResultOrError.__init__s1����
�-1��	��m�o�o���4?�4E�4G�4G��
�
�
��excc�F�||_|j���dSr)r
r�set)rrs  rrzEventResultOrError.sets!����	���������rc��BK�|j�|j�����}|j�|��	|�d{V��}|j�|��n#|j�|��wxYw|j�|j�|Sr)r�create_taskr�waitr�append�remover
)r�waiter�vals   rrzEventResultOrError.waits�������'�'���(8�(8�(:�(:�;�;���
���V�$�$�$�	)��,�,�,�,�,�,�C��M� � ��(�(�(�(��D�M� � ��(�(�(�(�����9� ��)�O��
s�A2�2Bc�B�|jD]}|����dS)zCancel all waitersN)r�cancel)rr s  rr#zEventResultOrError.cancel&s,���m�	�	�F��M�M�O�O�O�O�	�	rr)r	N)
�__name__�
__module__�__qualname__�__doc__r�AbstractEventLooprr�
BaseExceptionrrrr#�rrrrs���������H�W�6�H�4�H�H�H�H���x�
�.��$������C����������rr)rr�typingrrrrr*rr�<module>r,sj����������'�'�'�'�'�'�'�'�'�'�#�#�#�#�#�#�#�#�#�#r

Zerion Mini Shell 1.0