Is there a good way in Akka 2.0 to close all participants under start / user? For example, suppose I do the following:
val system = ActorSystem.create("mySystem")
system.actorOf(Props(new MyActor1), "actor1")
system.actorOf(Props(new MyActor2), "actor2")
After some time, I decided that I want to stop all participants in the system. If I understand things correctly, actor1 and actor2 will be the children of the path / user, but I don't see a method that gives me the iterability of the children of ActorRef. Is there another way?
source
share