interface Continuation
source · line 9public
public interface Continuation<T>
Receives exactly one terminal value or exception from a coroutine. It does not itself provide scheduling or structured cancellation.
type parameter T
source · line 9public
T
function resumeWithException
source · line 19public
public fun resumeWithException(exception: Throwable): Unit
Completes the suspended computation exceptionally. A continuation must not be completed twice.
parameter exception
source · line 19public
exception: Throwable
function resume
source · line 14public
public fun resume(value: T): Unit
Completes the suspended computation with a value. A continuation must not be completed twice.
parameter value
source · line 14public
value: T