Reply to comment

Below is how to do it. Thanks

Below is how to do it. Thanks for reporting. We will improve docs.

scala> import akka.actor._
import akka.actor._

scala> import akka.dispatch._
import akka.dispatch._

scala> implicit val system = ActorSystem("MySys")
system: akka.actor.ActorSystem = akka://MySys

scala> val future = Future {1 + 1}
future: akka.dispatch.Future[Int] = akka.dispatch.DefaultPromise@473a3bc4

scala> val result = Await.result(future, 1 second)
result: Int = 2

Reply

The content of this field is kept private and will not be shown publicly.