Sha256: 959da99ec1595b535768eab25c15048e89b9c998f20158b091d521a2a5dc66a8

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

require 'action_cable/subscription_adapter/inline'

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

        class AsyncSubscriberMap < SubscriberMap
          def add_subscriber(*)
            Concurrent.global_io_executor.post { super }
          end

          def invoke_callback(*)
            Concurrent.global_io_executor.post { super }
          end
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
actioncable-5.0.0.beta3 lib/action_cable/subscription_adapter/async.rb
actioncable-5.0.0.beta2 lib/action_cable/subscription_adapter/async.rb