mp
02/06/2019, 7:50 PMlouiscad
02/06/2019, 7:58 PMmp
02/06/2019, 7:58 PMk
tasks going, but I need to look at each as it finishes to know if I should add more work to dolouiscad
02/06/2019, 8:43 PMactor
I think. You can launch 4 (or k
) coroutines inside it that then call receive()
in a while(isActive)
loop before doing work with the received value.mp
02/06/2019, 10:22 PMansman
02/06/2019, 10:29 PMAwaitAll
which does a similar thing: https://github.com/Kotlin/kotlinx.coroutines/blob/master/common/kotlinx-coroutines-core-common/src/Await.kt#L59