class Async::Queue

def dequeue

Remove and return the next item from the queue.
def dequeue
	while @items.empty?
		@available.wait
	end
	
	@items.shift
end