lib/pigeon/engine.rb
def terminate
    wrap_chain(:stop) do
      if (EventMachine.reactor_running?)
        EventMachine.stop_event_loop
      end

      @state = :terminated
    end
  end
# Shuts down the engine. Will also trigger the before_stop and after_stop
# events.
Shuts down the engine. Will also trigger the before_stop and after_stop
events.
Shuts down the engine . Will also trigger the before_stop and after_stop events .
def terminate
    wrap_chain(:stop) do
      if (EventMachine.reactor_running?)
        EventMachine.stop_event_loop
      end
      @state = :terminated
    end
  end
def terminate wrap_chain ( :stop ) do if ( EventMachine . reactor_running? ) EventMachine . stop_event_loop end @state = :terminated end end
Shuts down the engine.
Shuts down the engine .