Block Until a Future Completes
You can block until completion of a Future
with a strategy like this:
import scala.concurrent.duration._
Await.result(future, 10.seconds).get
You can find other options in this Stack Overflow thread.
You can block until completion of a Future
with a strategy like this:
import scala.concurrent.duration._
Await.result(future, 10.seconds).get
You can find other options in this Stack Overflow thread.