Class: ActiveSupport::SubscriberQueueRegistry

Inherits:
Object
  • Object
show all
Extended by:
PerThreadRegistry
Defined in:
activesupport/lib/active_support/subscriber.rb

Overview

This is a registry for all the event stacks kept for subscribers.

See the documentation of ActiveSupport::PerThreadRegistry for further details.

Instance Method Summary collapse

Constructor Details

#initializeSubscriberQueueRegistry

Returns a new instance of SubscriberQueueRegistry


85
86
87
# File 'activesupport/lib/active_support/subscriber.rb', line 85

def initialize
  @registry = {}
end

Instance Method Details

#get_queue(queue_key) ⇒ Object


89
90
91
# File 'activesupport/lib/active_support/subscriber.rb', line 89

def get_queue(queue_key)
  @registry[queue_key] ||= []
end