gotoOla
11/29/2018, 1:11 PM// Type of job here is Deffered<String>
val job = async {
"kanelbulle"
}
// The await will give you the value
println(job.await())
the await is “blocking” in terms of how your code is sequentially running but it doesn’t actually block threads as the await is a suspension pointmarstran
11/29/2018, 1:12 PMgotoOla
11/29/2018, 1:12 PM