UNDISPATCHED

UNDISPATCHED (source)

Immediately executes coroutine until its first suspension point in the current thread as if it the coroutine was started using Unconfined dispatcher. However, when coroutine is resumed from suspension it is dispatched according to the CoroutineDispatcher in its context.

This is similar to ATOMIC in the sense that coroutine starts executing even if it was already cancelled, but the difference is that it start executing in the same thread.

Cancellability of coroutine at suspension points depends on the particular implementation details of suspending functions as in DEFAULT.

Inherited Properties

isLazy

val isLazy: Boolean

Returns true when LAZY.

Inherited Functions

invoke

operator fun <T> invoke(
    block: suspend () -> T,
    completion: Continuation<T>
): Unit

Starts the corresponding block as a coroutine with this coroutine start strategy.

operator fun <R, T> invoke(
    block: suspend R.() -> T,
    receiver: R,
    completion: Continuation<T>
): Unit

Starts the corresponding block with receiver as a coroutine with this coroutine start strategy.