Core concept
import scala.concurrent.duration._
val x = Await.result(Future(42), 5.seconds)Advertisement
How it works
Blocks thread — defeats async benefit. Use only in main or tests.
Advertisement
Trade-offs + gotchas
Main function of app. Testing.