lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb
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