123456789_123456789_123456789_123456789_123456789_

Class: ActionCable::SubscriptionAdapter::Async::AsyncSubscriberMap

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActionCable::SubscriptionAdapter::SubscriberMap
Defined in: actioncable/lib/action_cable/subscription_adapter/async.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(event_loop) ⇒ AsyncSubscriberMap

[ GitHub ]

  
# File 'actioncable/lib/action_cable/subscription_adapter/async.rb', line 14

def initialize(event_loop)
  @event_loop = event_loop
  super()
end

Instance Method Details

#add_subscriber

[ GitHub ]

  
# File 'actioncable/lib/action_cable/subscription_adapter/async.rb', line 19

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

#invoke_callback

[ GitHub ]

  
# File 'actioncable/lib/action_cable/subscription_adapter/async.rb', line 23

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