Home
last modified time | relevance | path

Searched refs:completeExceptionally (Results 1 – 23 of 23) sorted by relevance

/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/src/future/
DFuture.kt61 if (!future.completeExceptionally(cause) && !handled) { in onCancelled()
79 future.completeExceptionally(t) in asCompletableFuture()
94 else future.completeExceptionally(cause) in asCompletableFuture()
121 CompletableDeferred<T>().also { it.completeExceptionally(original) } in asDeferred()
132 result.completeExceptionally((exception as? CompletionException)?.cause ?: exception) in asDeferred()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCompletableJobTest.kt27 assertTrue(job.completeExceptionally(TestException())) in <lambda>()
31 assertFalse(job.completeExceptionally(TestException())) in <lambda>()
67 job.completeExceptionally(TestException()) in <lambda>()
89 job.completeExceptionally(TestException()) in <lambda>()
DCompletableDeferredTest.kt67 assertEquals(true, c.completeExceptionally(TestException())) in testCancelWithException()
69 assertEquals(false, c.completeExceptionally(TestException())) in testCancelWithException()
134 assertEquals(true, c.completeExceptionally(TestException())) in testParentCancelledOnChildException()
DSupervisorTest.kt170 parent.completeExceptionally(TestException1()) in <lambda>()
194 supervisor.completeExceptionally(TestException1()) in <lambda>()
DAwaitTest.kt206 .apply { completeExceptionally(TestException()) } in <lambda>()
208 .apply { completeExceptionally(TestException()) } in <lambda>()
DJobTest.kt206 job.completeExceptionally(TestException()) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCompletableDeferred.kt48 public fun completeExceptionally(exception: Throwable): Boolean in complete() method
61 result.fold({ complete(it) }, { completeExceptionally(it) }) in complete()
93 override fun completeExceptionally(exception: Throwable): Boolean = method
DCompletableJob.kt44 public fun completeExceptionally(exception: Throwable): Boolean method
DJobSupport.kt1327 override fun completeExceptionally(exception: Throwable): Boolean = in complete() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DJobExceptionHandlingTest.kt48 parent.completeExceptionally(IOException()) in <lambda>()
69 parent.completeExceptionally(IOException()) in <lambda>()
187 job.completeExceptionally(IOException()) in <lambda>()
300 parent.completeExceptionally(TestException()) in <lambda>()
DJobBasicCancellationTest.kt152 assertTrue(deferred.completeExceptionally(IndexOutOfBoundsException())) in testConsecutiveCancellation()
153 assertFalse(deferred.completeExceptionally(AssertionError())) // second is too late in testConsecutiveCancellation()
DStackTraceRecoverySelectTest.kt40 deferred.completeExceptionally(RecoverableTestException()) in <lambda>()
DProduceExceptionsTest.kt150 job.completeExceptionally(TestException2()) in <lambda>()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/future/
DFutureExceptionsTest.kt63 future.completeExceptionally(exception) in <lambda>()
77 future.completeExceptionally(exception) in <lambda>()
DFutureTest.kt83 toAwait.completeExceptionally(TestException("O")) in <lambda>()
99 completable.completeExceptionally(TestException("O")) in <lambda>()
126 toAwait.completeExceptionally(TestException("O")) in <lambda>()
144 completable.completeExceptionally(TestException("O")) in <lambda>()
236 completeExceptionally(TestException("something went wrong")) in <lambda>()
DAsFutureTest.kt76 CompletableDeferred<Unit>(parent = job).apply { completeExceptionally(OutOfMemoryError()) } in testJobAsCompletableFutureThrowable()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/src/
DListenableFuture.kt111 it.completeExceptionally(t) in asDeferred()
129 CompletableDeferred<T>().also { it.completeExceptionally(e.nonNullCause()) } in asDeferred()
143 deferred.completeExceptionally(t) in asDeferred()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/src/
DTasks.kt56 CompletableDeferred<T>().apply { completeExceptionally(e) } in asDeferred()
67 result.completeExceptionally(e) in asDeferred()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DAwaitJvmTest.kt15 d1.completeExceptionally(TestException()) // first is crashed in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DShare.kt341 result.completeExceptionally(e) in launchSharingDeferred()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt364 deferred.completeExceptionally(CancellationException()) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api109 public abstract fun completeExceptionally (Ljava/lang/Throwable;)Z
130 public abstract fun completeExceptionally (Ljava/lang/Throwable;)Z
/external/kotlinx.coroutines/
DCHANGES.md935 * It extends `Deferred` interface with `complete` and `completeExceptionally` functions.