lib/pigeon/queue.rb
# Returns true if the queue is empty, false otherwise. If filter_name is
# given, then will return true if there are no matching tasks, false
# otherwise. An optional block can further restrict qualifying tasks.
Returns true if the queue is empty, false otherwise. If filter_name is
given, then will return true if there are no matching tasks, false
otherwise. An optional block can further restrict qualifying tasks.
Returns true if the queue is empty false otherwise . If filter_name is given then will return true if there are no matching tasks false otherwise . An optional block can further restrict qualifying tasks .
def empty?(filter_name = nil, &block)
    if (block_given?)
      @filters.synchronize do
        !@tasks.find(&block)
      end
    else
      !peek(filter_name)
    end
  end
def empty? ( filter_name = nil , & block ) if ( block_given? ) @filters . synchronize do ! @tasks . find ( & block ) end else ! peek ( filter_name ) end end
Returns true if the queue is empty, false otherwise.
Returns true if the queue is empty false otherwise .
filter_name
block