dequeue
$q->dequeue
- Removes and returns a scalar from the head of the queue. If the queue is empty,
dequeueblocks the thread until another threadenqueues a scalar on the queue.
$q->dequeue
dequeue blocks the thread until another thread enqueues a scalar on the queue.