resumeIfActive

fun <T> CancellableContinuation<T>.resumeIfActive(value: T)

Resumes the execution of the corresponding coroutine if it is still active and passes value as the return value of the last suspension point.