Home
last modified time | relevance | path

Searched refs:getCancellationException (Results 1 – 19 of 19) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCompletableDeferredTest.kt43 assertThrows<IllegalStateException> { c.getCancellationException() } in checkFresh()
52 assertTrue(c.getCancellationException() is JobCancellationException) in checkCompleteOk()
77 assertTrue(c.getCancellationException() is JobCancellationException) in checkCancelWithException()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DJob.kt174 public fun getCancellationException(): CancellationException in getCancellationException() method
585 if (!isActive) throw getCancellationException() in cancel()
DYield.kt55 if (job != null && !job.isActive) throw job.getCancellationException() in checkCompletion()
DNonCancellable.kt72 …override fun getCancellationException(): CancellationException = throw IllegalStateException("This… in getCancellationException() method
DCancellableContinuationImpl.kt248 parent.getCancellationException() in <lambda>()
284 val cause = job.getCancellationException() in <lambda>()
DJobSupport.kt414 public final override fun getCancellationException(): CancellationException = in <lambda>() method
1170 return parent.getCancellationException() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/
DBasicOperationsTest.kt107 assertTrue(d.getCancellationException().cause is ClosedReceiveChannelException) in <lambda>()
129 assertTrue(d.getCancellationException().cause is TestException) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestRunBlockingTest.kt155 throw job.getCancellationException() in <lambda>()
190 throw job.getCancellationException().cause ?: assertFails { "expected exception" } in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/src/
DMono.kt75 if (getCancellationException() !== cause) { in onCancelled()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DJobBasicCancellationTest.kt154 val cause = deferred.getCancellationException().cause!! in testConsecutiveCancellation()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DErrors.kt219 return isSameExceptionAs(job.getCancellationException()) in isCancellationCause()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DDispatchedTask.kt99 val cause = job.getCancellationException() in getSuccessfulResult()
DDispatchedContinuation.kt228 val cause = job.getCancellationException() in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/src/
DRxObservable.kt109 throw getCancellationException() in doLockedNext()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/src/
DRxObservable.kt123 throw getCancellationException() in doLockedNext()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/src/
DPublish.kt148 throw getCancellationException() in doLockedNext()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/selects/
DSelect.kt340 resumeSelectWithException(job.getCancellationException()) in next()
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api341 public abstract fun getCancellationException ()Ljava/util/concurrent/CancellationException;
414 public final fun getCancellationException ()Ljava/util/concurrent/CancellationException;
458 public fun getCancellationException ()Ljava/util/concurrent/CancellationException;
/external/kotlinx.coroutines/
DCHANGES.md889 …* `Job.getCompletionException` is renamed to `Job.getCancellationException` and return a wrapper e…