Sha256: 315d13071ec25a90f76aca5d8ec23ca8b2e3bbba63e82e9c09b23ca153fefe68

Contents?: true

Size: 432 Bytes

Versions: 9

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module Emittance
  ##
  # Synchronously dispatches the event to watchers.
  #
  class Synchronous < Emittance::Broker
    class << self
      # (@see Emittance::Broker.process_event)
      def process_event(event)
        dispatcher.process_event event
      end
    end
  end
end

require 'emittance/dispatchers/synchronous'

Emittance::Brokerage.register_broker Emittance::Synchronous, :synchronous

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
emittance-2.0.0.pre.1 lib/emittance/brokers/synchronous.rb
emittance-1.1.0 lib/emittance/brokers/synchronous.rb
emittance-1.0.0 lib/emittance/brokers/synchronous.rb
emittance-0.1.3 lib/emittance/brokers/synchronous.rb
emittance-0.1.2 lib/emittance/brokers/synchronous.rb
emittance-0.1.1 lib/emittance/brokers/synchronous.rb
emittance-0.1.0 lib/emittance/brokers/synchronous.rb
emittance-0.0.6 lib/emittance/brokers/synchronous.rb
emittance-0.0.5 lib/emittance/brokers/synchronous.rb