Sha256: 38861ec5f9b08c83f44a3fb1d2868214ced45ca4943dec49487797124eaa210d

Contents?: true

Size: 584 Bytes

Versions: 18

Compression:

Stored size: 584 Bytes

Contents

# frozen_string_literal: true

module ActionCable
  module SubscriptionAdapter
    class Async < Inline # :nodoc:
      private
        def new_subscriber_map
          AsyncSubscriberMap.new(server.event_loop)
        end

        class AsyncSubscriberMap < SubscriberMap
          def initialize(event_loop)
            @event_loop = event_loop
            super()
          end

          def add_subscriber(*)
            @event_loop.post { super }
          end

          def invoke_callback(*)
            @event_loop.post { super }
          end
        end
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actioncable-7.1.3.4/lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.5.1 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.5 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.4.2 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.4.1 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.4 lib/action_cable/subscription_adapter/async.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actioncable-7.1.3.4/lib/action_cable/subscription_adapter/async.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actioncable-7.1.3.4/lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.3.4 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.3.2 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.3.1 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.3 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.2 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.1 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.0 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.0.rc2 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.0.rc1 lib/action_cable/subscription_adapter/async.rb
actioncable-7.1.0.beta1 lib/action_cable/subscription_adapter/async.rb