method

ensure_reactor_running

rails latest stable - Class: ActionCable::Connection::FayeEventLoop

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

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