When I create an ad-hoc future and call it it works ok.
scala> val f = future {Thread.sleep(1000 * 60 * 1); println("Hi"); 20}
f: scala.actors.Future[Int] =
scala> f()
Hi
res39: Int = 20
When I create the same future and call awaitAll it does not work. The awaitAll returns None as if the future were not resolved.
scala> val f = future {Thread.sleep(1000 * 60 * 1); println("Hi"); 20}
f: scala.actors.Future[Int] =
scala> awaitAll(1000 * 60 * 2, f)
Hi
res40: List[Option[Any]] = List(None)