1

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?

tkachuko
  • 1,956
  • 1
  • 13
  • 20

1 Answers1

0

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

  • 1
    Please add an example to your answer. Links can change, and there is no guarantee they will work in the future. – K_Finlay Nov 11 '22 at 00:34