handleCoroutineException

fun handleCoroutineException(
    context: CoroutineContext,
    exception: Throwable
): Unit
(source)

Helper function for coroutine builder implementations to handle uncaught exception in coroutines.

It tries to handle uncaught exception in the following way: