Home
last modified time | relevance | path

Searched refs:uCont (Results 1 – 17 of 17) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/selects/
DSelectOld.kt21 uCont: Continuation<R> // unintercepted delegate continuation in <lambda>()
22 ) : SelectImplementation<R>(uCont.context) { in <lambda>()
23 private val cont = CancellableContinuationImpl(uCont.intercepted(), MODE_CANCELLABLE) in <lambda>()
61 uCont: Continuation<R> // unintercepted delegate continuation
62 ) : UnbiasedSelectImplementation<R>(uCont.context) {
63 private val cont = CancellableContinuationImpl(uCont.intercepted(), MODE_CANCELLABLE)
105 return suspendCoroutineUninterceptedOrReturn { uCont -> in selectOld() method
106 val scope = SelectBuilderImpl(uCont) in selectOld()
119 suspendCoroutineUninterceptedOrReturn { uCont -> in selectUnbiasedOld() method
120 val scope = UnbiasedSelectBuilderImpl(uCont) in selectUnbiasedOld()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DScopes.kt17 @JvmField val uCont: Continuation<T> // unintercepted continuation constant
20 final override val callerFrame: CoroutineStackFrame? get() = uCont as? CoroutineStackFrame
27 uCont.intercepted().resumeCancellableWith(recoverResult(state, uCont)) in getStackTraceElement()
32 uCont.resumeWith(recoverResult(state, uCont)) in afterResume()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DBuilders.common.kt149 return suspendCoroutineUninterceptedOrReturn sc@ { uCont -> in withContext() method
151 val oldContext = uCont.context in withContext()
158 val coroutine = ScopeCoroutine(newContext, uCont) in withContext()
164 val coroutine = UndispatchedCoroutine(newContext, uCont) in withContext()
171 val coroutine = DispatchedCoroutine(newContext, uCont) in withContext()
213 uCont: Continuation<T>
224 uCont: Continuation<T>
225 ) : ScopeCoroutine<T>(context, uCont) {
261 uCont.intercepted().resumeCancellableWith(recoverResult(state, uCont)) in afterResume()
DTimeout.kt45 return suspendCoroutineUninterceptedOrReturn { uCont -> in <lambda>() method
46 setupTimeout(TimeoutCoroutine(timeMillis, uCont), block) in <lambda>()
104 return suspendCoroutineUninterceptedOrReturn { uCont -> in withTimeoutOrNull() method
105 val timeoutCoroutine = TimeoutCoroutine(timeMillis, uCont) in withTimeoutOrNull()
146 val cont = coroutine.uCont in withTimeoutOrNull()
156 uCont: Continuation<U> // unintercepted continuation
157 ) : ScopeCoroutine<T>(uCont.context, uCont), Runnable {
DSupervisor.kt59 return suspendCoroutineUninterceptedOrReturn { uCont -> in <lambda>() method
60 val coroutine = SupervisorCoroutine(uCont.context, uCont) in <lambda>()
71 uCont: Continuation<T> in childCancelled()
72 ) : ScopeCoroutine<T>(context, uCont) { in childCancelled()
DYield.kt30 public suspend fun yield(): Unit = suspendCoroutineUninterceptedOrReturn sc@ { uCont -> in <lambda>() method
31 val context = uCont.context in <lambda>()
33 val cont = uCont.intercepted() as? DispatchedContinuation<Unit> ?: return@sc Unit in <lambda>()
DCancellableContinuation.kt314 suspendCoroutineUninterceptedOrReturn { uCont -> in suspendCancellableCoroutine() method
315 … val cancellable = CancellableContinuationImpl(uCont.intercepted(), resumeMode = MODE_CANCELLABLE) in suspendCancellableCoroutine()
332 ): T = suspendCoroutineUninterceptedOrReturn { uCont -> in suspendCancellableCoroutineReusable() method
333 val cancellable = getOrCreateCancellableContinuation(uCont.intercepted()) in suspendCancellableCoroutineReusable()
DCoroutineScope.kt262 return suspendCoroutineUninterceptedOrReturn { uCont -> in coroutineScope() method
263 val coroutine = ScopeCoroutine(uCont.context, uCont) in coroutineScope()
DCompletionState.kt25 internal fun <T> recoverResult(state: Any?, uCont: Continuation<T>): Result<T> = in recoverResult()
27 Result.failure(recoverStackTrace(state.cause, uCont)) in recoverResult()
DJobSupport.kt1228 private suspend fun awaitSuspend(): Any? = suspendCoroutineUninterceptedOrReturn { uCont -> in <lambda>() method
1234 val cont = AwaitContinuation(uCont.intercepted(), this) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/internal/
DFlowCoroutine.kt31 suspendCoroutineUninterceptedOrReturn { uCont -> in <lambda>() method
32 val coroutine = FlowCoroutine(uCont.context, uCont) in <lambda>()
56 uCont: Continuation<T>
57 ) : ScopeCoroutine<T>(context, uCont) {
DChannelFlow.kt225 suspendCoroutineUninterceptedOrReturn { uCont -> in emit() method
227 … block.startCoroutineUninterceptedOrReturn(value, StackFrameContinuation(uCont, newContext)) in emit()
233 private val uCont: Continuation<T>, override val context: CoroutineContext constant in StackFrameContinuation
237 get() = uCont as? CoroutineStackFrame
240 uCont.resumeWith(result) in resumeWith()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/flow/internal/
DSafeCollector.kt64 return suspendCoroutineUninterceptedOrReturn sc@{ uCont -> in <lambda>() method
66 emit(uCont, value) in <lambda>()
71 lastEmissionContext = DownstreamExceptionContext(e, uCont.context) in <lambda>()
77 private fun emit(uCont: Continuation<Unit>, value: T): Any? { in <lambda>()
78 val currentContext = uCont.context in <lambda>()
86 completion = uCont in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/
DCoroutineContext.kt53 uCont: Continuation<T> in withCoroutineContext()
54 ) : ScopeCoroutine<T>(context, uCont) { in withCoroutineContext()
55 override fun afterResume(state: Any?) = uCont.resumeWith(recoverResult(state, uCont)) in withCoroutineContext()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DCoroutineContext.kt57 uCont: Continuation<T> in withCoroutineContext()
58 ) : ScopeCoroutine<T>(context, uCont) { in withCoroutineContext()
59 override fun afterResume(state: Any?) = uCont.resumeWith(recoverResult(state, uCont)) in withCoroutineContext()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DCoroutineContext.kt167 uCont: Continuation<T>
168 …ine<T>(if (context[UndispatchedMarker] == null) context + UndispatchedMarker else context, uCont) {
236 if (uCont.context[ContinuationInterceptor] !is CoroutineDispatcher) {
268 val result = recoverResult(state, uCont) in afterResume()
269 withContinuationContext(uCont, null) { in afterResume()
270 uCont.resumeWith(result) in afterResume()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/intrinsics/
DUndispatched.kt119 shouldThrow(state.cause) -> throw recoverStackTrace(state.cause, uCont) in undispatchedResult()
120 result is CompletedExceptionally -> throw recoverStackTrace(result.cause, uCont) in undispatchedResult()