/snap/core24/1587/usr/lib/python3.12/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-312.pyc866100644editdlrm
base_futures.cpython-312.pyc30860644editdlrm
base_subprocess.cpython-312.pyc161020644editdlrm
base_tasks.cpython-312.pyc40870644editdlrm
constants.cpython-312.pyc9550644editdlrm
coroutines.cpython-312.pyc37690644editdlrm
events.cpython-312.pyc367530644editdlrm
exceptions.cpython-312.pyc30810644editdlrm
format_helpers.cpython-312.pyc38650644editdlrm
futures.cpython-312.pyc172560644editdlrm
locks.cpython-312.pyc275020644editdlrm
log.cpython-312.pyc2810644editdlrm
mixins.cpython-312.pyc10360644editdlrm
proactor_events.cpython-312.pyc445580644editdlrm
protocols.cpython-312.pyc87820644editdlrm
queues.cpython-312.pyc119410644editdlrm
runners.cpython-312.pyc99360644editdlrm
selector_events.cpython-312.pyc631240644editdlrm
sslproto.cpython-312.pyc415470644editdlrm
staggered.cpython-312.pyc62400644editdlrm
streams.cpython-312.pyc333800644editdlrm
subprocess.cpython-312.pyc120960644editdlrm
taskgroups.cpython-312.pyc79270644editdlrm
tasks.cpython-312.pyc403710644editdlrm
threads.cpython-312.pyc12580644editdlrm
timeouts.cpython-312.pyc77970644editdlrm
transports.cpython-312.pyc140040644editdlrm
trsock.cpython-312.pyc50790644editdlrm
unix_events.cpython-312.pyc678140644editdlrm
windows_events.cpython-312.pyc415390644editdlrm
windows_utils.cpython-312.pyc73380644editdlrm
__init__.cpython-312.pyc14570644editdlrm
__main__.cpython-312.pyc51750644editdlrm
Edit: /snap/core24/1587/usr/lib/python3.12/asyncio/__pycache__/queues.cpython-312.pyc (11941B)
Цi&dZddlZddlZddlmZddlmZddlmZGddeZ Gd d eZ Gd d ejZ Gd de Z Gdde Zy))Queue PriorityQueue LifoQueue QueueFull QueueEmptyN) GenericAlias)locks)mixinsceZdZdZy)rz;Raised when Queue.get_nowait() is called on an empty Queue.N__name__ __module__ __qualname____doc__%/usr/lib/python3.12/asyncio/queues.pyrr sErrceZdZdZy)rzDRaised when the Queue.put_nowait() method is called on a full Queue.Nr rrrrrsNrrceZdZdZddZdZdZdZdZdZ dZ e e Z d Zd Zed Zd Zd ZdZdZdZdZdZdZy)raA 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. c ||_tj|_tj|_d|_t j|_|jj|j|y)Nr) _maxsize collectionsdeque_getters_putters_unfinished_tasksr Event _finishedset_initselfmaxsizes r__init__zQueue.__init__!s\ $))+ #))+ !"  7rc6tj|_yN)rr_queuer"s rr!z Queue._init/s!'') rc6|jjSr')r(popleftr#s r_getz Queue._get2s{{""$$rc:|jj|yr'r(appendr#items r_putz Queue._put5 4 rct|r6|j}|js|jdy|r5yyr')r*done set_result)r#waiterswaiters r _wakeup_nextzQueue._wakeup_next:s0__&F;;=!!$' rcpdt|jdt|dd|jdS)N)typerid_formatr+s r__repr__zQueue.__repr__Bs54:&&'tBtHR=$,,.9IKKrcVdt|jd|jdS)Nr;r<r=)r>rr@r+s r__str__z Queue.__str__Es)4:&&'q(8::rcPd|j}t|ddr|dt|jz }|jr|dt |jdz }|j r|dt |j dz }|jr|d|jz }|S)Nzmaxsize=r(z _queue=z _getters[]z _putters[z tasks=)rgetattrlistr(rlenrr)r#results rr@z Queue._formatJsDMM,- 44 ( dkk!2 56 6F ==  3t}}#5"6a8 8F ==  3t}}#5"6a8 8F  ! !  6 678 8F rc,t|jS)zNumber of items in the queue.)rHr(r+s rqsizez Queue.qsizeVs4;;rc|jS)z%Number of items allowed in the queue.)rr+s rr$z Queue.maxsizeZs}}rc|j S)z3Return True if the queue is empty, False otherwise.r(r+s remptyz Queue.empty_s;;rc\|jdkry|j|jk\S)zReturn True if there are maxsize items in the queue. Note: if the Queue was initialized with maxsize=0 (the default), then full() is never True. rF)rrKr+s rfullz Queue.fullcs( ==A ::<4==0 0rcK|jrU|jj}|jj | |d{|jrU|j|S7&#|j  |jj |n#t$rYnwxYw|js+|js|j|jxYww)zPut an item into the queue. Put an item into the queue. If the queue is full, wait until a free slot is available before adding item. N) rQ _get_loop create_futurerr/cancelremove ValueError cancelledr9 put_nowait)r#r1putters rputz Queue.putns iik^^%335F MM  (  iik&t$$  MM((0!yy{6+;+;+=%%dmm4sZA C8 A;A9A;C8(C89A;;C5B*)C5* B63C55B66?C55C8c|jrt|j||xjdz c_|jj |j |jy)zyPut an item into the queue without blocking. If no free slot is immediately available, raise QueueFull. r N)rQrr2rrclearr9rr0s rrYzQueue.put_nowaitsP 99;O $ !#  $--(rcK|jrU|jj}|jj | |d{|jrU|jS7%#|j  |jj |n#t$rYnwxYw|js+|js|j|jxYww)zoRemove and return an item from the queue. If queue is empty, wait until an item is available. N) rOrSrTrr/rUrVrWrXr9 get_nowait)r#getters rgetz Queue.gets jjl^^%335F MM  (  jjl&    MM((0!zz|F,<,<,>%%dmm4sZA C7 A:A8A:C7(C78A::C4 B)(C4) B52C44B55?C44C7c|jrt|j}|j|j|S)zRemove and return an item from the queue. Return an item if one is immediately available, else raise QueueEmpty. )rOrr,r9rr0s rr_zQueue.get_nowaits5 ::< yy{ $--( rc|jdkr td|xjdzc_|jdk(r|jjyy)a$Indicate that a formerly enqueued task is complete. Used by queue consumers. For each get() used to fetch a task, a subsequent call to task_done() tells the queue that the processing on the task is complete. If a join() is currently blocking, it will resume when all items have been processed (meaning that a task_done() call was received for every item that had been put() into the queue). Raises ValueError if called more times than there were items placed in the queue. rz!task_done() called too many timesr N)rrWrr r+s r task_donezQueue.task_donesR  ! !Q &@A A !#  ! !Q & NN    'rctK|jdkDr#|jjd{yy7w)aBlock until all items in the queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer calls task_done() to indicate that the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to zero, join() unblocks. rN)rrwaitr+s rjoinz Queue.joins4  ! !A %..%%' ' ' & 's -868N)r)rrrrr%r!r,r2r9rArC classmethodr__class_getitem__r@rKpropertyr$rOrQr[rYrar_rdrgrrrrrs~  *%! L;$L1   1%6 )!4 !( (rrcReZdZdZdZej fdZejfdZ y)rzA subclass of Queue; retrieves entries in priority order (lowest first). Entries are typically tuples of the form: (priority number, data). cg|_yr'rNr"s rr!zPriorityQueue._init  rc*||j|yr'rN)r#r1heappushs rr2zPriorityQueue._putsd#rc&||jSr'rN)r#heappops rr,zPriorityQueue._getst{{##rN) rrrrr!heapqror2rqr,rrrrrs( #(..$!==$rrc"eZdZdZdZdZdZy)rzEA subclass of Queue that retrieves most recently added entries first.cg|_yr'rNr"s rr!zLifoQueue._initrmrc:|jj|yr'r.r0s rr2zLifoQueue._putr3rc6|jjSr')r(popr+s rr,zLifoQueue._gets{{  rN)rrrrr!r2r,rrrrrsO!!rr)__all__rrrtypesrr r Exceptionrr_LoopBoundMixinrrrrrrr}s^ L     B(F " "B(J $E $ ! !r