Someone can explain me why the behavior of Twitter future is not Async? Having this code
private val future: Future[String] = Future {
Thread.sleep(2000)
println(s"Running this effect in ${Thread.currentThread().getName}")
"Hello from Twitter"
}
println("Present")
Await.result(future)
The output after two seconds is this one
Running this effect in main
Present
So the future is blocking and not running in another Thread