Is it possible to return value from the CoroutineExceptionHandler to the calling method?
override suspend fun getStatus() : Model {
return withContext<Model>(Dispatchers.IO + errorHandler) {
//Do something and return model
// If any other exception is thrown while multiple coroutines its passed down to errorhanlder
}
}
private val errorHandler = CoroutineExceptionHandler { _, exception ->
}