:white_check_mark: RESOLVED ```CoroutineScope(<ht...
# coroutines
t
RESOLVED
Copy code
CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch {
    launch {
        println("A")
        delay(5000)
        println("B")
    }
    launch(context = Job()) {
        delay(1000)
        throw IOException()
    }
}
The above snippet will crash the android app (obviously), but the app prints
B
5 seconds after the crash. Note that removing
Job()
gives expected result. Any idea why? 🤔
s
The basic reason is that adding your own
Job
breaks the structured concurrency hierarchy and unlinks the coroutine from its parent.
t
Got it. Thanks Sam