lib/pigeon/scheduler.rb
def queue_length
    @queues.inject(0) do |length, (_, queue)|
      length + queue.length
    end
  end
# Returns the number of tasks that have been queued up.
Returns the number of tasks that have been queued up.
Returns the number of tasks that have been queued up .
def queue_length
    @queues.inject(0) do |length, (_, queue)|
      length + queue.length
    end
  end
def queue_length @queues . inject ( 0 ) do | length , ( _ , queue ) | length + queue . length end end
Returns the number of tasks that have been queued up.
Returns the number of tasks that have been queued up .