Get existing or create new akka actor

后端 未结 3 1557
生来不讨喜
生来不讨喜 2020-12-31 17:33

I\'m trying to get an existing ActorRef with ActorFor or create a new one if it does not exists. I have the following code but it doesn\'t seem to work as expected. .isTermi

3条回答
  •  一生所求
    2020-12-31 18:19

    Based on the given code you are calling actorFor to look up a non-existent actor. The actor doesn't exist until actorOf is called.

提交回复
热议问题