Method: Async::LimitedQueue#dequeue

Defined in:
lib/async/queue.rb

#dequeueObject

Remove and return the next item from the queue.

If the queue is empty, this method will block until an item is available.

[View source]

163
164
165
166
167
168
169
# File 'lib/async/queue.rb', line 163

def dequeue
	item = super
	
	@full.signal
	
	return item
end