Sha256: a0e60c4b5242bb9726d542b5fb2200c2db59e404ad4fdcdddbfd08b23df8f0b6

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 Bytes

Contents

require 'concurrent/actor/behaviour/abstract'

module Concurrent
  module Actor
    module Behaviour
      # Simply fails when message arrives here. It's usually the last behaviour.
      class ErrorsOnUnknownMessage < Abstract
        def on_envelope(envelope)
          raise UnknownMessage, envelope
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
concurrent-ruby-edge-0.7.2 lib/concurrent-ruby-edge/concurrent/actor/behaviour/errors_on_unknown_message.rb
concurrent-ruby-edge-0.7.1 lib/concurrent-ruby-edge/concurrent/actor/behaviour/errors_on_unknown_message.rb
concurrent-ruby-edge-0.7.0 lib/concurrent-ruby-edge/concurrent/actor/behaviour/errors_on_unknown_message.rb