Lines Matching refs:Queue
1 :mod:`Queue` --- A synchronized queue class
4 .. module:: Queue
8 The :mod:`Queue` module has been renamed to :mod:`queue` in Python 3. The
12 **Source code:** :source:`Lib/Queue.py`
16 The :mod:`Queue` module implements multi-producer, multi-consumer queues.
18 exchanged safely between multiple threads. The :class:`~Queue.Queue` class in this
30 The :mod:`Queue` module defines the following classes and exceptions:
32 .. class:: Queue(maxsize=0)
63 Exception raised when non-blocking :meth:`~Queue.get` (or
64 :meth:`~Queue.get_nowait`) is called
65 on a :class:`~Queue.Queue` object which is empty.
70 Exception raised when non-blocking :meth:`~Queue.put` (or
71 :meth:`~Queue.put_nowait`) is called
72 on a :class:`~Queue.Queue` object which is full.
83 Queue Objects
86 Queue objects (:class:`~Queue.Queue`, :class:`LifoQueue`, or :class:`PriorityQueue`)
90 .. method:: Queue.qsize()
97 .. method:: Queue.empty()
105 .. method:: Queue.full()
113 .. method:: Queue.put(item[, block[, timeout]])
127 .. method:: Queue.put_nowait(item)
132 .. method:: Queue.get([block[, timeout]])
145 .. method:: Queue.get_nowait()
153 .. method:: Queue.task_done()
169 .. method:: Queue.join()
188 q = Queue()