Method: Async::LimitedQueue#dequeue
- Defined in:
- lib/async/queue.rb
permalink #dequeue ⇒ Object
Remove and return the next item from the queue.
If the queue is empty, this method will block until an item is available.
163 164 165 166 167 168 169 |
# File 'lib/async/queue.rb', line 163 def dequeue item = super @full.signal return item end |