PyDocs

Nav

Networking and Interprocess Communication

Queue.shutdown

asyncio

method of Queue · Added in 3.13 (source) not WASI
  • Queue.shutdown(immediate=False)
Shut-down the queue, making queue gets and puts raise QueueShutDown.

By default, gets will only raise once the queue is empty. Set
'immediate' to True to make gets raise immediately instead.

All blocked callers of put() and get() will be unblocked.

If 'immediate', the queue is drained and unfinished tasks
is reduced by the number of drained tasks.  If unfinished tasks
is reduced to zero, callers of Queue.join are unblocked.
0 Examples
No examples for asyncio/Queue.shutdown.
See Also
No see-alsos for asyncio/Queue.shutdown
0 Notes
No notes for Queue.shutdown