neworldlt
10/07/2019, 10:05 AMlaunch() {
val a = async<Int> {
throw RuntimeException("foo")
}
try {
a.await() //comment this line and parent job will be active, even `async` coroutine was executed and failed
} catch (e: Exception) {
println("Got exception form async: $e")
}
println("Job of launch is active: ${coroutineContext[Job]!!.isActive}") //why job is not active?
}