Describe the bug
The creation of CoroutineExceptionHandler takes around 100ms which is causing a delay in calling our API's
val exceptionHandler = CoroutineExceptionHandler { _, exception ->
pagingStateLiveData.postValue(QcResult.Error(exception))
}
val start = System.currentTimeMillis()
coroutineScope.launch(exceptionHandler) {
println("It took ${System.currentTimeMillis() - start} ms")
}
Lib version
1.7.3
Provide a Reproducer
- to reproduce it just create an empty CoroutineExceptionHandler and set a start and end timer. and observe.