Akka Actor “ask” and “Await” with TimeoutException
I'm modeling a simple P2P with Scala and Akka: class Node() extends Peer with Actor { var peers: List[ActorRef] = List() def receive = { case _register(peer: ActorRef, p: Option[Int]) => { println("registering [" + peer + "] for [" + this + "]") peers = peer :: peers } } } sealed case class _register(val peer: ActorRef, var p: Option[Int] = None) and then a simple network: class Network() extends Actor { def this(name: String) = { this() val system = ActorSystem(name) val s1 = system.actorOf(Props(new Node()), name = "s1") val s2 = system.actorOf(Props(new Node()), name = "s2") val c1 = system