method
ensure_reactor_running
v5.0.0.1 -
Show latest stable
- Class:
ActionCable::Connection::FayeEventLoop
ensure_reactor_running()private
No documentation available.
# File actioncable/lib/action_cable/connection/faye_event_loop.rb, line 25
def ensure_reactor_running
return if EventMachine.reactor_running?
@@mutex.synchronize do
Thread.new { EventMachine.run } unless EventMachine.reactor_running?
Thread.pass until EventMachine.reactor_running?
end
end