diff --git a/libraries/stdlib/coroutines/src/kotlin/coroutines/Continuation.kt b/libraries/stdlib/coroutines/src/kotlin/coroutines/Continuation.kt index 16ea5fa7979..78c24652b4f 100644 --- a/libraries/stdlib/coroutines/src/kotlin/coroutines/Continuation.kt +++ b/libraries/stdlib/coroutines/src/kotlin/coroutines/Continuation.kt @@ -41,6 +41,7 @@ public annotation class RestrictsSuspension /** * Resumes the execution of the corresponding coroutine passing [value] as the return value of the last suspension point. */ +@SinceKotlin("1.3") @InlineOnly public inline fun Continuation.resume(value: T): Unit = resumeWith(SuccessOrFailure.success(value)) @@ -48,6 +49,7 @@ public annotation class RestrictsSuspension * Resumes the execution of the corresponding coroutine so that the [exception] is re-thrown right after the * last suspension point. */ +@SinceKotlin("1.3") @InlineOnly public inline fun Continuation.resumeWithException(exception: Throwable): Unit = resumeWith(SuccessOrFailure.failure(exception))