<Why does upper coroutine wait a non-related corou...
# forum
r
Why does upper coroutine wait a non-related coroutine? I’ve just learned that upper coroutine waits its child coroutine because there is a parent-child relationship(Structured concurrency). please check this code below. fun main(): Unit = runBlocking { launch(Job()) { // the new job replaces one from parent delay(1000) println("Will not be printed") } } The result on the example is nothing. Nothing printed. because the new job replaces one from parent. So, runBlocking doesn’t know the new Job. it means there is no...