PyDocs

Nav

Concurrent Execution

Queue.get

queue

method of Queue (source)
  • Queue.get(block=True, timeout=None)
Remove and return an item from the queue.

If optional args 'block' is true and 'timeout' is None (the default),
block if necessary until an item is available. If 'timeout' is
a non-negative number, it blocks at most 'timeout' seconds and raises
the Empty exception if no item was available within that time.
Otherwise ('block' is false), return an item if one is immediately
available, else raise the Empty exception ('timeout' is ignored
in that case).

Raises ShutDown if the queue has been shut down and is empty,
or if the queue has been shut down immediately.
0 Examples
No examples for queue/Queue.get.
See Also
No see-alsos for queue/Queue.get
0 Notes
No notes for Queue.get