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 | 168 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 | 234 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 …]
|
D | NonCancellable.kt | 87 …override fun invokeOnCompletion(onCancelling: Boolean, invokeImmediately: Boolean, handler: Comple… in getCancellationException()
|
D | Job.kt | 352 onCancelling: Boolean = false, in getCancellationException()
|
D | CancellableContinuationImpl.kt | 124 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 | 97 …cancelHandle = job.invokeOnCompletion(onCancelling = true, invokeImmediately = true, handler = thi… in setup()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/channels/ |
D | Actor.kt | 132 override fun onCancelling(cause: Throwable?) { in onCancelling() method
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/selects/ |
D | Select.kt | 330 onCancelling = true, handler = SelectOnCancelling(parent).asHandler) in next()
|
/external/kotlinx.coroutines/ |
D | CHANGES.md | 363 …* 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/ |
D | kotlinx-coroutines-core.api | 432 protected fun onCancelling (Ljava/lang/Throwable;)V
|