remove Props.apply(ActorContext => Receive)
since a closure does not introduce a new implicit scope, the following would not do what people expect:
and the problem is that the message replied by the child will use the parent as its sender.
new Actor {
context.actorOf(Props((ctx) => { case msg => ctx.sender ! "gotit" } ))
}
and the problem is that the message replied by the child will use the parent as its sender.
Leave a comment