gildor
09/14/2017, 7:30 AManthonyandroid
09/14/2017, 7:32 AMawait()
for each job I have, to make sure that all the jobs are completed?gildor
09/14/2017, 7:36 AMasync
and when you build and start all of them (they started by default) you just call await()
on all of them, so when last coroutine finished you will get your resultsanthonyandroid
09/14/2017, 7:43 AMstart
for every job but now it looks nonsense. They should be started automatically and that sounds fastergildor
09/14/2017, 7:47 AMstart
argument of async
, you can see that async starts by default
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/async.htmlanthonyandroid
09/14/2017, 7:52 AM