ATOMIC

ATOMIC (source)

Atomically (in non-cancellable way) schedules coroutine for execution according to its context. This is similar to DEFAULT, but the coroutine cannot be cancelled before it starts executing.

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.