resumeWithExceptionIfActive

fun <T> CancellableContinuation<T>.resumeWithExceptionIfActive(exception: Throwable)

Resumes the execution of the corresponding coroutine if it is still active so that the exception is re-thrown right after the last suspension point.