HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //opt/cloudlinux/venv/lib/python3.11/site-packages/aiohttp/__pycache__/locks.cpython-311.pyc
�

�hp��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