Junior — Senior
Exception behavior in different types of coroutines
livecode
Task condition
It is necessary to understand how the program will react when calling the functions someFun and someFun2.
fun someFun() {
val a: Int = async { suspendFun() }
someFun1111()
}
fun someFun2() {
launch { suspendFun() }
someFun2323()
}
fun suspendFun(): Int {
throw RuntimeException()
}