| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/asyncio/__pycache__/ |
Upload File : |
a
�iq � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ G dd� de �Z
G d d
� d
e �ZG dd� d�ZG d
d� de�Z
G dd� de�ZdS ))�Queue�
PriorityQueue� LifoQueue� QueueFull�
QueueEmpty� N)�GenericAlias� )�events)�locksc @ s e Zd ZdZdS )r z;Raised when Queue.get_nowait() is called on an empty Queue.N��__name__�
__module__�__qualname__�__doc__� r r �&/usr/lib64/python3.9/asyncio/queues.pyr s r c @ s e Zd ZdZdS )r zDRaised when the Queue.put_nowait() method is called on a full Queue.Nr r r r r r s r c @ s� e Zd ZdZd)dd�dd�Zdd� Zd d
� Zdd� Zd
d� Zdd� Z dd� Z
ee�Z
dd� Zdd� Zedd� �Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� ZdS )*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 N��loopc C sp |d u rt �� | _n|| _tjdtdd� || _t�� | _ t�� | _
d| _tj
|d�| _| j�� | �|� d S )Nz[The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.� )�
stacklevelr r )r Zget_event_loop�_loop�warnings�warn�DeprecationWarning�_maxsize�collections�deque�_getters�_putters�_unfinished_tasksr
�Event� _finished�set�_init)�self�maxsizer r r r �__init__"