PyDocs

Nav

Concurrent Execution

Queue.put

queue

method of Queue (source)
  • Queue.put(item, block=True, timeout=None)
Put an item into the queue.

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

Raises ShutDown if the queue has been shut down.
0 Examples
No examples for queue/Queue.put.
See Also
No see-alsos for queue/Queue.put
0 Notes
No notes for Queue.put