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.kt168 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.kt234 if (!wasCancelling) onCancelling(finalException) in <lambda>()
293 onCancelling(null) // simple state is not a failure in <lambda>()
329 onCancelling(cause) in <lambda>()
449 invokeOnCompletion(onCancelling = false, invokeImmediately = true, handler = handler) in <lambda>()
452 onCancelling: Boolean, in <lambda>()
462 … val node = nodeCache ?: makeNode(handler, onCancelling).also { nodeCache = it } in <lambda>()
474 if (onCancelling && state is Finishing) { in <lambda>()
482 … val node = nodeCache ?: makeNode(handler, onCancelling).also { nodeCache = it } in <lambda>()
496 … val node = nodeCache ?: makeNode(handler, onCancelling).also { nodeCache = it } in <lambda>()
511 private fun makeNode(handler: CompletionHandler, onCancelling: Boolean): JobNode<*> { in <lambda>()
[all …]
DNonCancellable.kt87 …override fun invokeOnCompletion(onCancelling: Boolean, invokeImmediately: Boolean, handler: Comple… in getCancellationException()
DJob.kt352 onCancelling: Boolean = false, in getCancellationException()
DCancellableContinuationImpl.kt124 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.kt97 …cancelHandle = job.invokeOnCompletion(onCancelling = true, invokeImmediately = true, handler = thi… in setup()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/channels/
DActor.kt132 override fun onCancelling(cause: Throwable?) { in onCancelling() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/selects/
DSelect.kt330 onCancelling = true, handler = SelectOnCancelling(parent).asHandler) in next()
/external/kotlinx.coroutines/
DCHANGES.md363 …* New API: `CancellableContinuation.resume` with `onCancelling` lambda (#1044) to consistently han…
566 * Fixed bug with JS error in rare cases in `invokeOnCompletion(onCancelling = true)`.
624 * Fixed materialization of a `cause` exception for `Job` onCancelling handlers (see #436).
938 * `Job.invokeOnCompletion` has an additional overload with `onCancelling: Boolean` parameter to
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api432 protected fun onCancelling (Ljava/lang/Throwable;)V