Server IP : 192.158.238.246 / Your IP : 18.219.65.132 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/aiohttp/__pycache__/ |
Upload File : |
� ��bgp � �D � d dl Z d dlZd dlmZmZmZ G d� d� � ZdS )� N)�Any�Deque�Optionalc �^ � e Zd ZdZdej ddfd�Zd dee ddfd�Z de fd�Zdd �ZdS )�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 | _ t j � � | _ t j � � | _ d S �N)�_loop�_exc�asyncio�Event�_event�collections�deque�_waiters)�selfr s �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 � � � d S r )r r �set)r r s r r zEventResultOrError.set s! � ��� ���������r c � �B K � | j � | j � � � � � }| j � |� � |� d {V ��}| j � |� � n# | j � |� � w xY w| j �| j �|S r )r �create_taskr �waitr �append�remover )r �waiter�vals r r zEventResultOrError.wait s� � � � ���'�'���(8�(8�(:�(:�;�;��� ���V�$�$�$� )��,�,�,�,�,�,�C��M� � ��(�(�(�(��D�M� � ��(�(�(�(�����9� ��)�O�� s �A2 �2Bc �B � | j D ]}|� � � �dS )zCancel all waitersN)r �cancel)r r s r r# zEventResultOrError.cancel&