Package kotlinx.coroutines.intrinsics

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

Functions

startCoroutineCancellable
Link copied to clipboard
fun <T> suspend () -> T.startCoroutineCancellable(completion: Continuation<T>)

Use this function to start coroutine in a cancellable way, so that it can be cancelled while waiting to be dispatched.