AbstractContext
implements the root actor
# File lib/concurrent/actor/root.rb, line 30 def behaviour_definition [*Behaviour.base(:just_log), *Behaviour.supervising, *Behaviour.user_messages] end
# File lib/concurrent/actor/root.rb, line 26 def dead_letter_routing @dead_letter_router end
to allow spawning of new actors, spawn needs to be called inside the parent Actor
# File lib/concurrent/actor/root.rb, line 15 def on_message(message) case when message.is_a?(::Array) && message.first == :spawn Actor.spawn message[1], &message[2] when message == :dead_letter_routing @dead_letter_router else # ignore end end
Generated with the Darkfish Rdoc Generator 2.