CoroutineExceptionHandler

inline fun CoroutineExceptionHandler(crossinline handler: (CoroutineContext, Throwable) -> Unit): CoroutineExceptionHandler

Creates a CoroutineExceptionHandler instance.

Parameters

handler

a function which handles exception thrown by a coroutine

Sources

common source
Link copied to clipboard