I am using actix to implement some simple processing logic in rust. The idea is that I have an actor type Parent which makes some decision and sometimes needs to create a Child actor, send message to it and get response. I noticed that actix Handler cannot be async therefore not allowing me to create an actor and receive response from it.
Is there a way to call an actor from another actor in actix?
You can use into_actor to turn a Future into an ActorFuture. You can find an example of sending a message and using the result here