lib/pigeon/queue.rb
# Iterates over each of the tasks in the queue.
Iterates over each of the tasks in the queue.
Iterates over each of the tasks in the queue .
def each
    tasks = nil
    @filters.synchronize do
      tasks = @tasks.dup
    end
    tasks.each do
      yield(task)
    end
  end
def each tasks = nil @filters . synchronize do tasks = @tasks . dup end tasks . each do yield ( task ) end end
Iterates over each of the tasks in the queue.
Iterates over each of the tasks in the queue .