Continuation

interface Continuation<in T>(source)

Interface representing a continuation after a suspension point that returns a value of type T.

Since Kotlin

1.3

Properties

Link copied to clipboard

The context of the coroutine that corresponds to this continuation.

Since Kotlin 1.3

Functions

Link copied to clipboard

Intercepts this continuation with ContinuationInterceptor.

Since Kotlin 1.3

Intercepts this continuation with ContinuationInterceptor.

Since Kotlin 1.3

Intercepts this continuation with ContinuationInterceptor.

Since Kotlin 1.3

Intercepts this continuation with ContinuationInterceptor.

Since Kotlin 1.3
Link copied to clipboard
inline fun <T> Continuation<T>.resume(value: T)

Resumes the execution of the corresponding coroutine passing value as the return value of the last suspension point.

Since Kotlin 1.3
Link copied to clipboard
abstract fun resumeWith(result: Result<T>)

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
Link copied to clipboard
inline fun <T> Continuation<T>.resumeWithException(exception: Throwable)

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

Since Kotlin 1.3