ivan.savytskyi
02/25/2019, 8:13 PMjob.children.toList()
? By looking into source seems should be fine, but want to confirmbdawg.io
02/25/2019, 8:38 PMAll functions on this interface and on all interfaces derived from it are thread-safe and can be safely invoked from concurrent coroutines without external synchronization.https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-job/
bdawg.io
02/25/2019, 8:38 PMivan.savytskyi
02/25/2019, 8:39 PMelizarov
02/25/2019, 9:05 PMtoList()
. New children launched while you iterate are added to the end, so job.children.forEach { it.await() }
actually waits for all children, even when some children launch new children.efemoney
02/27/2019, 1:01 PM