I have a scenario where I have to restart a child Actor from within a
parent actor. The restart should happen with the following rules:
1. The start should happen only after stop has been completed
2. Both the stop and start should happen asynchronously
I now have the following
In the following actor definition:
class MyActor extends Actor {
override def preStart(): Unit = {
super.preStart()
self ! M1(from M1)
}
def receive = initial(initial state)
def initial(str: String): Receive = {
case m1: M1 =
self ! M3(from