invoke
operator fun <T> invoke(
block: suspend () -> T,
completion: Continuation<T>
): Unit
(source)Starts the corresponding block as a coroutine with this coroutine start strategy.
- DEFAULT uses startCoroutineCancellable.
- ATOMIC uses startCoroutine.
- UNDISPATCHED uses startCoroutineUndispatched.
- LAZY does nothing.
operator fun <R, T> invoke(
block: suspend R.() -> T,
receiver: R,
completion: Continuation<T>
): Unit
(source)Starts the corresponding block with receiver as a coroutine with this coroutine start strategy.
- DEFAULT uses startCoroutineCancellable.
- ATOMIC uses startCoroutine.
- UNDISPATCHED uses startCoroutineUndispatched.
- LAZY does nothing.