In this recipe, you will learn how a parent sends messages to its child, and collects responses from them.
To step through this recipe, we need to import the Hello-Akka project in the IDE.
In this recipe, you will learn how a parent sends messages to its child, and collects responses from them.
To step through this recipe, we need to import the Hello-Akka project in the IDE.
import akka.actor.{ Props, ActorSystem, Actor, ActorRef }
case class DoubleValue(x: Int)
case object CreateChild
case object Send
case class Response(x: Int)
class DoubleActor extends Actor {
def receive = {
...