Sha256: 9a7fa1c6ef4de709ef4a34283c47a7032959d8f3f626594783955457277b55aa

Contents?: true

Size: 349 Bytes

Versions: 59

Compression:

Stored size: 349 Bytes

Contents

module Concurrent
  module Actor
    module Behaviour
      # Removes terminated children.
      class RemovesChild < Abstract
        def on_envelope(envelope)
          if envelope.message == :remove_child
            core.remove_child envelope.sender
          else
            pass envelope
          end
        end
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
concurrent-ruby-edge-0.6.0 lib/concurrent-ruby-edge/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.6.0.pre1 lib/concurrent-ruby-edge/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.5.0 lib-edge/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.4.1 lib-edge/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.4.0.pre2 lib-edge/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.4.0.pre1 lib-edge/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.4 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.3.1 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.3.0 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.3 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.3.pre3 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.2 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.1 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.0 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.0.pre5 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.1.2 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.0.pre4 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.0.pre3 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.0.pre2 lib/concurrent/actor/behaviour/removes_child.rb
concurrent-ruby-edge-0.2.0.pre1 lib/concurrent/actor/behaviour/removes_child.rb