PyDocs

Nav

Concurrent Execution

Queue

queue

class (source)
  • Queue(maxsize=0)
Create a queue object with a given maximum size.

If maxsize is <= 0, the queue size is infinite.
Members of Queue

e

empty
Return True if the queue is empty, False otherwise (not reliable!).

f

full
Return True if the queue is full, False otherwise (not reliable!).

g

get
Remove and return an item from the queue.
get_nowait
Remove and return an item from the queue without blocking.

j

join
Blocks until all items in the Queue have been gotten and processed.

p

put
Put an item into the queue.
put_nowait
Put an item into the queue without blocking.

q

qsize
Return the approximate size of the queue (not reliable!).

s

shutdown
Shut-down the queue, making queue gets and puts raise ShutDown.

t

task_done
Indicate that a formerly enqueued task is complete.
0 Examples
No examples for queue/Queue.
See Also
No see-alsos for queue/Queue
0 Notes
No notes for Queue