$ q ->dequeue_nb
q
Like dequeue but returns undef if the queue is empty, instead of blocking.
dequeue
undef
Copyright © 2001 O'Reilly & Associates. All rights reserved.