Home
last modified time | relevance | path

Searched refs:CancellationException (Results 1 – 25 of 206) sorted by relevance

123456789

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DExceptions.kt15 public actual typealias CancellationException = java.util.concurrent.CancellationException typealias
21 public actual fun CancellationException(message: String?, cause: Throwable?) : CancellationExceptio… in CancellationException() method
22 CancellationException(message).apply { initCause(cause) } in CancellationException()
33 ) : CancellationException(message), CopyableThrowable<JobCancellationException> {
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt12 import java.util.concurrent.CancellationException in <lambda>()
189 } catch (e: CancellationException) { in <lambda>()
220 assertFailsWith<CancellationException> { future.get() } in <lambda>()
242 assertFailsWith<CancellationException> { future.get() } in <lambda>()
265 assertFailsWith<CancellationException> { future.get() } in <lambda>()
285 assertFailsWith<CancellationException> { asListenableFuture.get() } in <lambda>()
289 assertFailsWith<CancellationException> { future.get() } in <lambda>()
308 assertFailsWith<CancellationException> { asListenableFuture.get() } in <lambda>()
314 assertFailsWith<CancellationException> { future.get() } in <lambda>()
322 assertFailsWith<CancellationException> { future.get() } in <lambda>()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DExceptions.common.kt15 public expect open class CancellationException(message: String?) : IllegalStateException class
18 public expect fun CancellationException(message: String?, cause: Throwable?) : CancellationException in CancellationException() method
24 ) : CancellationException { in CancellationException()
DJob.kt174 public fun getCancellationException(): CancellationException in getCancellationException()
192 public fun cancel(cause: CancellationException? = null) in getCancellationException()
459 public fun getChildJobCancellationCause(): CancellationException in parentCancelled()
519 public fun Job.cancelChildren(cause: CancellationException? = null) { in cancelChildren()
562 public fun CoroutineContext.cancel(cause: CancellationException? = null) { in cancel()
610 ….cancel(message: String, cause: Throwable? = null): Unit = cancel(CancellationException(message, c… in cancel()
627 public fun CoroutineContext.cancelChildren(cause: CancellationException? = null) { in cancelChildren()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DProduceExceptionsTest.kt80 } catch (e: CancellationException) { in <lambda>()
90 } catch (e: CancellationException) { in <lambda>()
129 } catch (e: CancellationException) { in <lambda>()
139 } catch (e: CancellationException) { in <lambda>()
153 } catch (e: CancellationException) { // Not a TestException2 in <lambda>()
163 } catch (e: CancellationException) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCancellableContinuationHandlersTest.kt52 assertTrue(it is CancellationException) in <lambda>()
57 } catch (e: CancellationException) { in <lambda>()
77 } catch (e: CancellationException) { in <lambda>()
87 assertFailsWith<CancellationException> { in <lambda>()
92 assertTrue(it is CancellationException) in <lambda>()
157 } catch (e: CancellationException) { in <lambda>()
DWithContextTest.kt95 } catch (e: CancellationException) { in <lambda>()
102 } catch (e: CancellationException) { in <lambda>()
110 expected = { it is CancellationException } in testCancelWithJobWithSuspend()
126 } catch (e: CancellationException) { in <lambda>()
137 expected = { it is CancellationException } in testRunCancellableDefault()
247 assertTrue(e is CancellationException, "Caught $e") in <lambda>()
335 } catch (e: CancellationException) { in <lambda>()
343 expected = { it is CancellationException } in testWithContextCancelledThisJob()
DWithTimeoutTest.kt74 expected = { it is CancellationException } in testYieldBlockingWithTimeout()
120 } catch (e: CancellationException) { in <lambda>()
128 expected = { it is CancellationException } in testSuppressExceptionWithResult()
135 } catch (e: CancellationException) { in <lambda>()
151 } catch (e: CancellationException) { in <lambda>()
DWithTimeoutDurationTest.kt75 expected = { it is CancellationException } in testYieldBlockingWithTimeout()
127 } catch (e: CancellationException) { in equals()
135 expected = { it is CancellationException } in testSuppressExceptionWithResult()
142 } catch (e: CancellationException) { in <lambda>()
158 } catch (e: CancellationException) { in <lambda>()
DDelayTest.kt15 fun testCancellation() = runTest(expected = {it is CancellationException }) { in testCancellation()
20 fun testMaxLongValue()= runTest(expected = {it is CancellationException }) { in <lambda>()
25 fun testMaxIntValue()= runTest(expected = {it is CancellationException }) { in <lambda>()
DCancellableResumeTest.kt76 expected = { it is CancellationException } in <lambda>()
95 expected = { it is CancellationException }, in <lambda>()
152 } catch (e: CancellationException) { in <lambda>()
187 } catch (e: CancellationException) { in <lambda>()
220 } catch (e: CancellationException) { in <lambda>()
261 } catch (e: CancellationException) { in <lambda>()
DCompletableDeferredTest.kt60 assertThrows<CancellationException> { c.getCompleted() } in checkCancel()
61 assertTrue(c.getCompletionExceptionOrNull() is CancellationException) in checkCancel()
113 assertThrows<CancellationException> { c.getCompleted() } in testParentCancelsChild()
114 assertTrue(c.getCompletionExceptionOrNull() is CancellationException) in testParentCancelsChild()
186 } catch (e: CancellationException) { in <lambda>()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractFutureBenchmarks.java22 import java.util.concurrent.CancellationException;
301 throws TimeoutException, CancellationException, ExecutionException, InterruptedException { in get()
316 V get() throws CancellationException, ExecutionException, InterruptedException { in get()
328 private V getValue() throws CancellationException, ExecutionException { in getValue()
396 ? new CancellationException("Future.cancel() was called.") in complete()
408 static final CancellationException cancellationExceptionWithCause( in cancellationExceptionWithCause()
410 CancellationException exception = new CancellationException(message); in cancellationExceptionWithCause()
DFuturesTransformAsyncTest.java25 import java.util.concurrent.CancellationException;
88 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfInputCancelled()
100 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfOutputCancelled()
117 } catch (CancellationException expected) { in testFutureCancelBeforeInputCompletion()
130 } catch (CancellationException expected) { in testFutureCancellableBeforeOutputCompletion()
152 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion()
161 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAbstractFutureBenchmarks.java22 import java.util.concurrent.CancellationException;
301 throws TimeoutException, CancellationException, ExecutionException, InterruptedException { in get()
316 V get() throws CancellationException, ExecutionException, InterruptedException { in get()
328 private V getValue() throws CancellationException, ExecutionException { in getValue()
396 ? new CancellationException("Future.cancel() was called.") in complete()
408 static final CancellationException cancellationExceptionWithCause( in cancellationExceptionWithCause()
410 CancellationException exception = new CancellationException(message); in cancellationExceptionWithCause()
DFuturesTransformAsyncTest.java25 import java.util.concurrent.CancellationException;
88 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfInputCancelled()
100 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfOutputCancelled()
117 } catch (CancellationException expected) { in testFutureCancelBeforeInputCompletion()
130 } catch (CancellationException expected) { in testFutureCancellableBeforeOutputCompletion()
152 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion()
161 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion()
DAbstractFutureCancellationCauseTest.java25 import java.util.concurrent.CancellationException;
94 } catch (CancellationException e) { in testCancel_notDoneNoInterrupt()
108 } catch (CancellationException e) { in testCancel_notDoneInterrupt()
156 } catch (CancellationException expected) { in testSetFuture_misbehavingFutureDoesNotThrow()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DFlatMapMergeTest.kt65 } catch (e: CancellationException) { in <lambda>()
79 throw CancellationException("") in <lambda>()
83 assertFailsWith<CancellationException>(flow) in <lambda>()
94 throw CancellationException("") in <lambda>()
103 assertFailsWith<CancellationException>(flow) in <lambda>()
DFlatMapMergeFastPathTest.kt49 throw CancellationException("") in <lambda>()
53 assertFailsWith<CancellationException>(flow) in <lambda>()
64 throw CancellationException("") in <lambda>()
73 assertFailsWith<CancellationException>(flow) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/internal/
DFlowScopeTest.kt14 assertFailsWith<CancellationException> { in testCancellation()
48 assertFailsWith<CancellationException> { in <lambda>()
67 assertFailsWith<CancellationException> { in <lambda>()
71 throw CancellationException(null) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DReusableCancellableContinuationTest.kt57 } catch (e: CancellationException) { in <lambda>()
63 fun testNotCancelledOnClaimedResume() = runTest({ it is CancellationException }) { in <lambda>()
85 } catch (e: CancellationException) {
131 } catch (e: CancellationException) { in testDetachedOnCancel()
138 fun testPropagatedCancel() = runTest({it is CancellationException}) { in <lambda>()
165 } catch (e: CancellationException) {
172 } catch (e: CancellationException) {
DRejectedExecutionTest.kt52 assertFailsWith<CancellationException> { in <lambda>()
65 assertFailsWith<CancellationException> { in <lambda>()
96 assertFailsWith<CancellationException> { in <lambda>()
118 assertFailsWith<CancellationException> { in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/
DObservableTest.kt10 import kotlinx.coroutines.CancellationException in <lambda>()
90 } catch (e: CancellationException) { in <lambda>()
127 } catch (e: CancellationException) { in <lambda>()
145 assertFalse(e is CancellationException) in <lambda>()
149 require(it !is CancellationException) in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/
DObservableTest.kt10 import kotlinx.coroutines.CancellationException in <lambda>()
90 } catch (e: CancellationException) { in <lambda>()
127 } catch (e: CancellationException) { in <lambda>()
145 assertFalse(e is CancellationException) in <lambda>()
149 require(it !is CancellationException) in <lambda>()
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DSimpleFuture.java4 import java.util.concurrent.CancellationException;
39 throw new CancellationException(); in get()
48 throw new CancellationException(); in get()

123456789