Home
last modified time | relevance | path

Searched refs:onCancellation (Results 1 – 7 of 7) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCancellableContinuationImpl.kt232 fun callOnCancellation(onCancellation: (cause: Throwable) -> Unit, cause: Throwable) { in <lambda>()
234 onCancellation.invoke(cause) in <lambda>()
295 override fun resume(value: T, onCancellation: ((cause: Throwable) -> Unit)?) = in <lambda>()
296 resumeImpl(value, resumeMode, onCancellation) in <lambda>()
369 onCancellation: ((cause: Throwable) -> Unit)?, in <lambda>()
374 assert { onCancellation == null } // only successful results can be cancelled in <lambda>()
378onCancellation != null || (state is CancelHandler && state !is BeforeResumeCancelHandler) || idemp… in <lambda>()
381 … CompletedContinuation(proposedUpdate, state as? CancelHandler, onCancellation, idempotent) in <lambda>()
388 onCancellation: ((cause: Throwable) -> Unit)? = null in <lambda>()
393 … val update = resumedState(state, proposedUpdate, resumeMode, onCancellation, idempotent = null) in <lambda>()
[all …]
DCompletionState.kt13 onCancellation: ((cause: Throwable) -> Unit)? = null in toState()
15 … onSuccess = { if (onCancellation != null) CompletedWithCancellation(it, onCancellation) else it }, in toState()
33 @JvmField val onCancellation: (cause: Throwable) -> Unit in recoverResult() constant in kotlinx.coroutines.CompletedWithCancellation
DCancellableContinuation.kt86 …public fun tryResume(value: T, idempotent: Any?, onCancellation: ((cause: Throwable) -> Unit)?): A… in <lambda>()
199 public fun resume(value: T, onCancellation: ((cause: Throwable) -> Unit)?) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DDispatchedContinuation.kt199 noinline onCancellation: ((cause: Throwable) -> Unit)? in <lambda>()
201 val state = result.toState(onCancellation) in <lambda>()
220 takenState.onCancellation(cause) in <lambda>()
263 onCancellation: ((cause: Throwable) -> Unit)? = null in resumeCancellableWith()
265 is DispatchedContinuation -> resumeCancellableWith(result, onCancellation) in resumeCancellableWith()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/intrinsics/
DCancellable.kt27 onCancellation: ((cause: Throwable) -> Unit)? = null in startCoroutineCancellable()
30 …ted(receiver, completion).intercepted().resumeCancellableWith(Result.success(Unit), onCancellation) in startCoroutineCancellable()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DTestBase.common.kt31 public suspend inline fun hang(onCancellation: () -> Unit) { in hang()
35 onCancellation() in hang()
/external/kotlinx.coroutines/
DCHANGES.md752 * `AbstractCoroutine.onCancellation` is invoked before cancellation handler that is set via `invoke…
760 …* Has overridable `onStart`, `onCancellation`, `onCompleted` and `onCompletedExceptionally` functi…