我正在从一个演员发送一条消息来杀死另一个演员。接收者actor执行context.system.shutdown
。尽管 actor 完美地接收到消息并执行 case 语句中指定的代码,但它只是不会关闭。出了什么问题?
接收者actor的接收方法。
def receive = {
...
case "KILL" => context.system.shutdown
}
我正在从一个演员发送一条消息来杀死另一个演员。接收者actor执行context.system.shutdown
。尽管 actor 完美地接收到消息并执行 case 语句中指定的代码,但它只是不会关闭。出了什么问题?
接收者actor的接收方法。
def receive = {
...
case "KILL" => context.system.shutdown
}