class RubyEventStore::Subscriptions::ThreadSubscriptions
Attributes
Public Class Methods
Source
# File lib/ruby_event_store/subscriptions.rb, line 38 def initialize @local = ThreadLocalSubscriptions.new @global = ThreadGlobalSubscriptions.new end
Public Instance Methods
Source
# File lib/ruby_event_store/subscriptions.rb, line 44 def all_for(topic) [global, local].map { |r| r.all_for(topic) }.reduce(&:+) end