ActorHierarchyExperiments: Send a start message to the first actor (#27204)
* Send a `start` message to the first actor Otherwise, only the actor system is started, but none of the actors. * Send a `start` message to the first actor Otherwise, only the actor system is started, but none of the actors.
This commit is contained in:
parent
9c0cece7de
commit
e59819a4cd
2 changed files with 4 additions and 2 deletions
|
|
@ -188,7 +188,8 @@ class Main extends AbstractBehavior<String> {
|
|||
|
||||
public class ActorHierarchyExperiments {
|
||||
public static void main(String[] args) {
|
||||
ActorSystem.create(Main.createBehavior(), "testSystem");
|
||||
ActorRef<String> testSystem = ActorSystem.create(Main.createBehavior(), "testSystem");
|
||||
testSystem.tell("start");
|
||||
}
|
||||
}
|
||||
// #print-refs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue