Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Concurrent::Actor::Behaviour::TerminatesChildren

Terminates all children when the actor terminates.

Public Instance Methods

on_event(public, event) click to toggle source
# File lib/concurrent/actor/behaviour/terminates_children.rb, line 6
def on_event(public, event)
  event_name, _ = event
  children.map { |ch| ch << :terminate! } if event_name == :terminated
  super public, event
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.