Missing SinceKotlin declarations added for resume extensions
This commit is contained in:
committed by
Denis Zharkov
parent
b06d626b21
commit
aaabfa6382
@@ -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.
|
* 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 <T> Continuation<T>.resume(value: T): Unit =
|
@InlineOnly public inline fun <T> Continuation<T>.resume(value: T): Unit =
|
||||||
resumeWith(SuccessOrFailure.success(value))
|
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
|
* Resumes the execution of the corresponding coroutine so that the [exception] is re-thrown right after the
|
||||||
* last suspension point.
|
* last suspension point.
|
||||||
*/
|
*/
|
||||||
|
@SinceKotlin("1.3")
|
||||||
@InlineOnly public inline fun <T> Continuation<T>.resumeWithException(exception: Throwable): Unit =
|
@InlineOnly public inline fun <T> Continuation<T>.resumeWithException(exception: Throwable): Unit =
|
||||||
resumeWith(SuccessOrFailure.failure(exception))
|
resumeWith(SuccessOrFailure.failure(exception))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user