$q->dequeue_nb
q
Like dequeue but returns undef if the queue is empty, instead of blocking.
dequeue
undef