Here is my code:
class testActor extends Actor { var test = "test2" def receive = { case "test" ⇒ "works" } } def test = Action { var test = "test" val system = ActorSystem("MySystem") val myActor = system.actorOf(Props[testActor.testActor], name = "testActor") test = Await.result(myActor ? "test", Duration(1, TimeUnit.SECONDS)) }
I get an error with this line:
test = Await.result(myActor ? "test", Duration(1, TimeUnit.SECONDS))
Mistake:
could not find implicit value for timeout parameter: akka.util.Timeout
user1491739
source share