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