Module: OurEelHacks::Defer::EventMachine

Included in:
Rack
Defined in:
lib/our-eel-hacks/defer/event-machine.rb

Instance Method Summary collapse

Instance Method Details

#trigger_scaling(*args) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/our-eel-hacks/defer/event-machine.rb', line 5

def trigger_scaling(*args)
  if ::EM.reactor_running?
    ::EM.defer do
      super
    end
  else
    super
  end
end