resumeWith

abstract fun resumeWith(result: Result<T>)(source)

Resumes the execution of the corresponding coroutine passing a successful or failed result as the return value of the last suspension point.

Since Kotlin

1.3