method

ensure_reactor_running

rails latest stable - Class: ActionCable::SubscriptionAdapter::EventedRedis

Method deprecated or moved

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

ensure_reactor_running()
private

No documentation available.

# File actioncable/lib/action_cable/subscription_adapter/evented_redis.rb, line 78
        def ensure_reactor_running
          return if EventMachine.reactor_running? && EventMachine.reactor_thread
          @@mutex.synchronize do
            Thread.new { EventMachine.run } unless EventMachine.reactor_running?
            Thread.pass until EventMachine.reactor_running? && EventMachine.reactor_thread
          end
        end