LAZY

Starts coroutine lazily, only when it is needed.

See the documentation for the corresponding coroutine builders for details (like launch and async).

If coroutine Job is cancelled before it even had a chance to start executing, then it will not start its execution at all, but complete with an exception.

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.