Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Where do you test for the UNDEF that ->dequeue_nb returns when it hits the end of the queue?
To quote Thread::Queue "dequeue_nb The dequeue_nb method, like the dequeue method, removes a scalar from the head of the queue and returns it. Unlike dequeue, though, dequeue_nb won't block if the queue is empty, instead returning undef. "
"No matter where you go, there you are." BB
In reply to Re: Hanging Threads
by Ninthwave
|
|