Queue

A multi-producer, multi-consumer queue.

Classes

LifoQueue([maxsize]) Variant of Queue that retrieves most recently added entries first.
PriorityQueue([maxsize]) Variant of Queue that retrieves open entries in priority order (lowest first).
Queue([maxsize]) Create a queue object with a given maximum size.
deque deque([iterable[, maxlen]]) –> deque object

Exceptions

Empty Exception raised by Queue.get(block=0)/get_nowait().
Full Exception raised by Queue.put(block=0)/put_nowait().