/snap/core22/2437/usr/lib/python3.10/asyncio/__pycache__
Edit: /snap/core22/2437/usr/lib/python3.10/asyncio/__pycache__/queues.cpython-310.pyc (8300B)
o
p̦ib @ s d Z ddlZddlZddlmZ ddlmZ ddlmZ G dd deZ G d d
d
eZ
G dd dejZG d
d deZ
G dd deZdS ))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 %/usr/lib/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 fddZdd Zdd Zd
d Z dd
Z
dd Zdd Ze
eZdd 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___maxsizecollectionsdeque_getters_putters_unfinished_tasksr Event _finishedset_init)selfmaxsizer __class__r r r ! s
zQueue.__init__c C s t | _d S N)r r _queuer" r# r r r r! 0 s zQueue._initc C
| j S r&