转载请标明出处:https://www.cnblogs.com/tangZH/p/17307406.htmlkotlin协程小记协程的async使用kotlin协程异常处理之-trycatchkotlin协程异常处理之-CoroutineExceptionHandlerCoroutineExceptionHandler用于在协程中捕获异常。一、CoroutineExceptionHandler只能处理当前域内开启的子协程或者当前协程抛出的异常GlobalScope.launch(CoroutineExceptionHandler{_,throwable->Log.d("MainActivity