What does Kotlin coroutines documentation mean when they say joinAll() is semantically equivalent to calling join() in sequence?
Advertisements In https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/join-all.html it’s stated that "This method is semantically equivalent to joining all given jobs one by one with forEach { it.join() }." I have this code import kotlinx.coroutines.* fun main() { joinTest() joinAllTest() } fun joinAllTest() { val begin = System.currentTimeMillis() runBlocking { (0..2).map { launch { delay1s(it) } }.joinAll() } val end… Read More What does Kotlin coroutines documentation mean when they say joinAll() is semantically equivalent to calling join() in sequence?