PyDocs

Nav

Concurrent Execution

Queue.get

multiprocessing

method of Queuenot Androidnot iOSnot WASI
  • Queue.get([block[, timeout]])
Remove and return an item from the queue. If optional args block is True (the default) and timeout is None (the default), block if necessary until an item is available. If timeout is a positive number, it blocks at most timeout seconds and raises the queue.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 queue.Empty exception (timeout is ignored in that case).
Changed in 3.8
  • 3.8: If the queue is closed, ValueError is raised instead of OSError.
0 Examples
No examples for multiprocessing/Queue.get.
See Also
No see-alsos for multiprocessing/Queue.get
0 Notes
No notes for Queue.get