Home
last modified time | relevance | path

Searched refs:MODE_CANCELLABLE (Results 1 – 6 of 6) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DResumeMode.kt11 @PublishedApi internal const val MODE_CANCELLABLE = 1 // schedule cancellable dispatch for suspe… constant
16 internal val Int.isCancellableMode get() = this == MODE_CANCELLABLE
17 internal val Int.isDispatchedMode get() = this == MODE_ATOMIC_DEFAULT || this == MODE_CANCELLABLE
22 MODE_CANCELLABLE -> resumeCancellable(value) in resumeMode()
33 MODE_CANCELLABLE -> resumeCancellableWithException(exception) in resumeWithExceptionMode()
44 MODE_CANCELLABLE -> intercepted().resumeCancellable(value) in resumeUninterceptedMode()
55 MODE_CANCELLABLE -> intercepted().resumeCancellableWithException(exception) in resumeUninterceptedWithExceptionMode()
DDispatched.kt118 resumeMode = MODE_CANCELLABLE in <lambda>()
121 executeUnconfined(value, MODE_CANCELLABLE) { in <lambda>()
135 resumeMode = MODE_CANCELLABLE in <lambda>()
138 executeUnconfined(state, MODE_CANCELLABLE) { in <lambda>()
175 resumeMode = MODE_CANCELLABLE in <lambda>()
285 executeUnconfined(Unit, MODE_CANCELLABLE, doYield = true) { in yieldUndispatched()
289 internal fun <T> DispatchedTask<T>.dispatch(mode: Int = MODE_CANCELLABLE) { in dispatch()
DCancellableContinuation.kt198 … val cancellable = CancellableContinuationImpl(uCont.intercepted(), resumeMode = MODE_CANCELLABLE) in suspendCancellableCoroutine()
DBuilders.common.kt219 override val defaultResumeMode: Int get() = MODE_CANCELLABLE
DCancellableContinuationImpl.kt177 if (resumeMode == MODE_CANCELLABLE) { in <lambda>()
DJobSupport.kt1100 ) : CancellableContinuationImpl<T>(delegate, MODE_CANCELLABLE) { in <lambda>()