CoroutineExceptionHandler
inline fun CoroutineExceptionHandler(
crossinline handler: (CoroutineContext, Throwable) -> Unit
): CoroutineExceptionHandler
(source)Creates new CoroutineExceptionHandler instance.
Parameters
handler
- a function which handles exception thrown by a coroutine