https://kotlinlang.org logo
#coroutines
Title
# coroutines
b

Bernhard

02/10/2019, 9:57 PM
I found the current one pretty hard to grasp when I looked up how to do 4 things in parallel and collect their results
r

reinierg

02/11/2019, 10:27 AM
What did you end up with, if I may ask?
b

Bernhard

02/13/2019, 11:47 AM
Copy code
runBlocking {
   val first = async {callIt()}
   val second = async {callIt2()}
   calculateResult(first.await(), second.await())
}
4 Views