Sha256: e0406eb628eb216331261417a89a24e6ea49189ccf965c60eb84a8376412f667

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

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

        def on_event(event)
          context.on_event(event)
          core.log Logging::DEBUG, "event: #{event.inspect}"
          super event
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
concurrent-ruby-0.7.0.rc2 lib/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-0.7.0.rc2-x86_64-linux lib/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-0.7.0.rc2-x86_64-darwin-13 lib/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-0.7.0.rc2-x86-solaris-2.11 lib/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-0.7.0.rc2-x86-mingw32 lib/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-0.7.0.rc2-x86-linux lib/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-0.7.0.rc2-x64-mingw32 lib/concurrent/actor/behaviour/executes_context.rb
concurrent-ruby-0.7.0.rc2-java lib/concurrent/actor/behaviour/executes_context.rb