Searched refs:onCancelling (Results 1 – 14 of 14) sorted by relevance
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/ |
D | AbstractCoroutineTest.kt | 21 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>()
|
D | JobTest.kt | 169 job.invokeOnCompletion(onCancelling = true) { in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/ |
D | JobHandlersUpgradeStressTest.kt | 57 val onCancelling = rnd.nextBoolean() in <lambda>() constant 65 … job.invokeOnCompletion(onCancelling = onCancelling, invokeImmediately = invokeImmediately) { in <lambda>()
|
D | JobDisposeStressTest.kt | 42 val handle = job.invokeOnCompletion(onCancelling = true) { /* nothing */ } in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/ |
D | JobSupport.kt | 236 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 …]
|
D | NonCancellable.kt | 105 …override fun invokeOnCompletion(onCancelling: Boolean, invokeImmediately: Boolean, handler: Comple… in getCancellationException()
|
D | Job.kt | 358 onCancelling: Boolean = false, in getCancellationException()
|
D | CancellableContinuationImpl.kt | 349 onCancelling = true, in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/ |
D | SuppressionTests.kt | 24 override fun onCancelling(cause: Throwable?) { in <lambda>() method 41 coroutine.invokeOnCompletion(onCancelling = true) { in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/ |
D | Interruptible.kt | 103 …cancelHandle = job.invokeOnCompletion(onCancelling = true, invokeImmediately = true, handler = thi… in setup()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/channels/ |
D | Actor.kt | 136 override fun onCancelling(cause: Throwable?) { in onCancelling() method
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/ |
D | TestBuilders.kt | 333 coroutineContext.job.invokeOnCompletion(onCancelling = true) { exception -> in runTest()
|
/external/kotlinx.coroutines/ |
D | CHANGES_UP_TO_1.7.md | 813 …* 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/ |
D | kotlinx-coroutines-core.api | 500 protected fun onCancelling (Ljava/lang/Throwable;)V
|