我的问题
在协程抛出异常后是否可能继续执行?
示例
try {
someMethod1()
someMethod2() //Throws an exception!
someMethod3()
} catch(e: Exception) {
//I do not want to call someMethod3 here!
//I want the coroutine to resume after the exception inside of the original block.
} finally {
//I also do not want to call someMethod3 here!
//I want the coroutine to resume after the exception inside of the original block.
}
我不确定这是否可能,但提前感谢您查看!