lib/pigeon/engine.rb
def dispatch(name = :default, &block)
    if (self.threaded?)
      target_queue = @dispatcher[name] ||= Pigeon::Dispatcher.new(name == :default ? nil : 1)

      target_queue.perform(&block)
    else
      EventMachine.next_tick(&block)
    end
  end
# Used to dispatch a block for immediate processing on a background thread.
# An optional queue name can be used to sequence tasks properly. The main
# queue has a large number of threads, while the named queues default
# to only one so they can be processed sequentially.
Used to dispatch a block for immediate processing on a background thread.
An optional queue name can be used to sequence tasks properly. The main
queue has a large number of threads, while the named queues default
to only one so they can be processed sequentially.
Used to dispatch a block for immediate processing on a background thread . An optional queue name can be used to sequence tasks properly . The main queue has a large number of threads while the named queues default to only one so they can be processed sequentially .
def dispatch(name = :default, &block)
    if (self.threaded?)
      target_queue = @dispatcher[name] ||= Pigeon::Dispatcher.new(name == :default ? nil : 1)
      target_queue.perform(&block)
    else
      EventMachine.next_tick(&block)
    end
  end
def dispatch ( name = :default , & block ) if ( self . threaded? ) target_queue = @dispatcher [ name ] ||= Pigeon :: Dispatcher . new ( name == :default ? nil : 1 ) target_queue . perform ( & block ) else EventMachine . next_tick ( & block ) end end
Used to dispatch a block for immediate processing on a background thread.
Used to dispatch a block for immediate processing on a background thread .
name
block