Sha256: da00dc8ed81f33730d67cd2ad6098e705e269cabb0d80f04923bfbd78871fcf4

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

require 'concurrent/actor/behaviour/abstract'

module Concurrent
  module Actor
    module Behaviour
      # Delegates messages and events to {AbstractContext} instance.
      class ExecutesContext < Abstract
        def on_envelope(envelope)
          context.on_envelope envelope
        end

        def on_event(public, event)
          context.on_event(event)
          super public, event
        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/executes_context.rb
concurrent-ruby-edge-0.7.1 lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-edge-0.7.0 lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb