Searched refs:onCancellation (Results 1 – 7 of 7) sorted by relevance
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/ |
D | CancellableContinuationImpl.kt | 232 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>() 378 …onCancellation != 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 …]
|
D | CompletionState.kt | 13 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
|
D | CancellableContinuation.kt | 86 …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/ |
D | DispatchedContinuation.kt | 199 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/ |
D | Cancellable.kt | 27 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/ |
D | TestBase.common.kt | 31 public suspend inline fun hang(onCancellation: () -> Unit) { in hang() 35 onCancellation() in hang()
|
/external/kotlinx.coroutines/ |
D | CHANGES.md | 752 * `AbstractCoroutine.onCancellation` is invoked before cancellation handler that is set via `invoke… 760 …* Has overridable `onStart`, `onCancellation`, `onCompleted` and `onCompletedExceptionally` functi…
|