KLuban
KLuban copied to clipboard
asyncRun这段代码的协程handler里面应该回调error吧,不然报错了,也没有回调,就卡在那了
override fun asyncRun(scope: CoroutineScope, liveData: CompressLiveData<T, List<File>>) {
val result by lazy { ArrayList<File>() }
val handler = CoroutineExceptionHandler { _, exception ->
Checker.logger("handlerCatch -> $exception") //这里面不应该回调State.Error吗
}
多线程这块确实不好用啊