Akka: What happens when you tell an ActorRef and it expects you to ask?

孤者浪人 提交于 2019-12-06 09:49:07

With ask pattern Response is received by temporary light-weight actor (PromiseActorRef).

In case of myActor ! Message there should be implicit ActorRef in scope. Response will be sent to this implicit ActorRef. This message will not be garbage-collected until you explicitly read it.

If there is no implicit ActorRef in scope Actor.noSender is used and Response will be forwarded to system's deadLetters.

If you make that call from another actor this Response will be delivered to message box of this another actor.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!