Extensions for kotlin.SuspendFunction1
fun <R, T> (suspend (R) -> T).startCoroutineCancellable( Use this function to start coroutine in a cancellable way, so that it can be cancelled while waiting to be dispatched. |
|
fun <R, T> (suspend (R) -> T).startCoroutineUndispatched( Use this function to restart coroutine directly from inside of suspendCoroutine in the same context. |