method
pop

Ruby latest stable (v2_5_5)
-
0 notes -
Class: SizedQueue
pop(*args)
public
Retrieves data from the queue.
If the queue is empty, the calling thread is suspended until data is pushed onto the queue. If non_block is true, the thread isn’t suspended, and ThreadError is raised.