Home
last modified time | relevance | path

Searched refs:onCancelling (Results 1 – 14 of 14) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DAbstractCoroutineTest.kt21 override fun onCancelling(cause: Throwable?) { in <lambda>() method
36 coroutine.invokeOnCompletion(onCancelling = true) { in <lambda>()
61 override fun onCancelling(cause: Throwable?) { in <lambda>() method
76 coroutine.invokeOnCompletion(onCancelling = true) { in <lambda>()
DJobTest.kt169 job.invokeOnCompletion(onCancelling = true) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DJobHandlersUpgradeStressTest.kt57 val onCancelling = rnd.nextBoolean() in <lambda>() constant
65 … job.invokeOnCompletion(onCancelling = onCancelling, invokeImmediately = invokeImmediately) { in <lambda>()
DJobDisposeStressTest.kt42 val handle = job.invokeOnCompletion(onCancelling = true) { /* nothing */ } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DJobSupport.kt236 if (!wasCancelling) onCancelling(finalException) in <lambda>()
295 onCancelling(null) // simple state is not a failure in <lambda>()
331 onCancelling(cause) in <lambda>()
451 invokeOnCompletion(onCancelling = false, invokeImmediately = true, handler = handler) in <lambda>()
454 onCancelling: Boolean, in <lambda>()
460 val node: JobNode = makeNode(handler, onCancelling) in <lambda>()
477 if (onCancelling && state is Finishing) { in <lambda>()
512 private fun makeNode(handler: CompletionHandler, onCancelling: Boolean): JobNode { in <lambda>()
513 val node = if (onCancelling) { in <lambda>()
974 …return invokeOnCompletion(onCancelling = true, handler = ChildHandleNode(child).asHandler) as Chil… in <lambda>()
[all …]
DNonCancellable.kt105 …override fun invokeOnCompletion(onCancelling: Boolean, invokeImmediately: Boolean, handler: Comple… in getCancellationException()
DJob.kt358 onCancelling: Boolean = false, in getCancellationException()
DCancellableContinuationImpl.kt349 onCancelling = true, in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DSuppressionTests.kt24 override fun onCancelling(cause: Throwable?) { in <lambda>() method
41 coroutine.invokeOnCompletion(onCancelling = true) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DInterruptible.kt103 …cancelHandle = job.invokeOnCompletion(onCancelling = true, invokeImmediately = true, handler = thi… in setup()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/channels/
DActor.kt136 override fun onCancelling(cause: Throwable?) { in onCancelling() method
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/
DTestBuilders.kt333 coroutineContext.job.invokeOnCompletion(onCancelling = true) { exception -> in runTest()
/external/kotlinx.coroutines/
DCHANGES_UP_TO_1.7.md813 …* New API: `CancellableContinuation.resume` with `onCancelling` lambda (#1044) to consistently han…
1016 * Fixed bug with JS error in rare cases in `invokeOnCompletion(onCancelling = true)`.
1074 * Fixed materialization of a `cause` exception for `Job` onCancelling handlers (see #436).
1388 * `Job.invokeOnCompletion` has an additional overload with `onCancelling: Boolean` parameter to
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api500 protected fun onCancelling (Ljava/lang/Throwable;)V