blob: cca68942890dd820ea28c42aea3e7b176107d909 (
plain) (
tree)
|
|
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
|