$q->dequeue
q
Removes and returns a scalar from the head of the queue. If the queue is empty, dequeue blocks the thread until another thread enqueues a scalar on the queue.
dequeue
enqueue
Copyright © 2001 O'Reilly & Associates. All rights reserved.