ruby-concurrency/concurrent-ruby

View on GitHub
lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb

Summary

Maintainability
A
0 mins
Test Coverage
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