https://kotlinlang.org logo
#ktor
Title
# ktor
g

gotoOla

11/29/2018, 1:11 PM
this would process them in parallel, if you want to get the value you would go firstSite.await(), e.g.
Copy code
// 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 point
m

marstran

11/29/2018, 1:12 PM
You can use triple backticks (```) to format the code.
👍 1
g

gotoOla

11/29/2018, 1:12 PM
thanks