KLuban icon indicating copy to clipboard operation
KLuban copied to clipboard

asyncRun这段代码的协程handler里面应该回调error吧,不然报错了,也没有回调,就卡在那了

Open hxmeie opened this issue 3 years ago • 1 comments

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吗
    }
   

hxmeie avatar Nov 16 '21 09:11 hxmeie

多线程这块确实不好用啊

louis-lzt avatar Nov 22 '21 08:11 louis-lzt