I have a call that returns a Future. However, I need to make n calls so I will get back n futures. I am wondering how I would get the futures to all resolve before proceeding (w
A little more functional:
val futures = for { c <- 0 until 10 } yield { val f = call(c) f onSuccess { case x => // Do your future stuff with x } f } Future.sequence(futures)