Hacked By AnonymousFox
o
6��fb � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ G dd� de�Z G d d
� d
e�Z
G dd� dej�ZG d
d� de�Z
G dd� de�ZdS ))�Queue�
PriorityQueue� LifoQueue� QueueFull�
QueueEmpty� N)�GenericAlias� )�locks)�mixinsc @ � e Zd ZdZdS )r z;Raised when Queue.get_nowait() is called on an empty Queue.N��__name__�
__module__�__qualname__�__doc__� r r �5/opt/alt/python310/lib64/python3.10/asyncio/queues.pyr � r c @ r )r zDRaised when the Queue.put_nowait() method is called on a full Queue.Nr r r r r r r r c s� e Zd ZdZd(ejd�� fdd�Zdd� Zdd � Zd
d� Z dd
� Z
dd� Zdd� Ze
e�Zdd� Zdd� Zedd� �Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Z� ZS ))r a A queue, useful for coordinating producer and consumer coroutines.
If maxsize is less than or equal to zero, the queue size is infinite. If it
is an integer greater than 0, then "await put()" will block when the
queue reaches maxsize, until an item is removed by get().
Unlike the standard library Queue, you can reliably know this Queue's size
with qsize(), since your single-threaded asyncio application won't be
interrupted between calling qsize() and doing an operation on the Queue.
r ��loopc sP t � j|d� || _t�� | _t�� | _d| _t� � | _
| j
�� | �|� d S )Nr r )
�super�__init__�_maxsize�collections�deque�_getters�_putters�_unfinished_tasksr ZEvent� _finished�set�_init)�self�maxsizer �� __class__r r r ! s
zQueue.__init__c C s t �� | _d S �N)r r �_queue�r! r"