Check these links:

https://github.com/Kotlin/kotlinx.coroutines/issues/1147 http://blog.davidvassallo.me/2020/01/15/kotlin-coroutines-flow-parallel-processing/