Package-level declarations

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

Functions

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.