lib/pigeon/queue.rb
def to_a
    @filters.synchronize do
      @tasks.dup
    end
  end
# Copies the list of queued tasks to a new Array.
Copies the list of queued tasks to a new Array.
Copies the list of queued tasks to a new Array .
def to_a
    @filters.synchronize do
      @tasks.dup
    end
  end
def to_a @filters . synchronize do @tasks . dup end end
Copies the list of queued tasks to a new Array.
Copies the list of queued tasks to a new Array .