Package kotlinx.coroutines.experimental.intrinsics

Low-level primitives for finer-grained control of coroutines.

Extensions for External Classes

kotlin.SuspendFunction0

kotlin.SuspendFunction1

Functions

startUndispatchedOrReturn

fun <T> AbstractCoroutine<T>.startUndispatchedOrReturn(
    block: suspend () -> T
): Any?
fun <T, R> AbstractCoroutine<T>.startUndispatchedOrReturn(
    receiver: R,
    block: suspend R.() -> T
): Any?

Starts this coroutine with the given code block in the same context and returns result when it completes without suspnesion. This function shall be invoked at most once on this coroutine.