Home
last modified time | relevance | path

Searched defs:deferred (Results 1 – 25 of 64) sorted by relevance

123

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DThreadLocalTest.kt27 val deferred = async(Dispatchers.Default + stringThreadLocal.asContextElement("value")) { in <lambda>() constant
49 val deferred = async(Dispatchers.Default + intThreadLocal.asContextElement(239)) { in <lambda>() constant
67 val deferred = async(Dispatchers.Default in <lambda>() constant
92 val deferred = GlobalScope.async(intThreadLocal.asContextElement(1)) { in <lambda>() constant
101 val deferred = async(intThreadLocal.asContextElement(53)) { in <lambda>() constant
124 val deferred = async(Dispatchers.Default in <lambda>() constant
134 val deferred = async(stringThreadLocal.asContextElement("async")) { in <lambda>() constant
156 val deferred = async(Dispatchers.Default in <lambda>() constant
168 val deferred = async(myCounterLocal.asContextElement(Counter(31))) { in <lambda>() constant
DDefaultExecutorStressTest.kt18 val deferred = async { in <lambda>() constant
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/test/
DTaskTest.kt24 val deferred = async(start = CoroutineStart.UNDISPATCHED) { in <lambda>() constant
37 val deferred = async { in <lambda>() constant
49 val deferred = GlobalScope.async { in testCancelledAsTask() constant
64 val deferred = GlobalScope.async { in testThrowingAsTask() constant
78 val deferred: Deferred<Int> = Tasks.call { in <lambda>() constant
91 val deferred = Tasks.forResult(42).asDeferred() in <lambda>() constant
102 val deferred = Tasks.forCanceled<Int>().asDeferred() in <lambda>() constant
115 val deferred = Tasks.forException<Int>(TestException("something went wrong")).asDeferred() in testFailedTaskAsDeferred() constant
135 val deferred: Deferred<Int> = Tasks.call { in <lambda>() constant
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DAsyncTest.kt74 val deferred = async(Job()) { in <lambda>() constant
86 val deferred = async(NonCancellable) { in <lambda>() constant
103 val deferred = async(NonCancellable) { in <lambda>() constant
127 val deferred = async(NonCancellable) { in <lambda>() constant
142 val deferred = async(NonCancellable) { in <lambda>() constant
157 val deferred = async(NonCancellable, start = CoroutineStart.ATOMIC) { in <lambda>() constant
233 val deferred = async(parent, CoroutineStart.ATOMIC) { in <lambda>() constant
249 val deferred = async { in <lambda>() constant
263 val deferred = async(Dispatchers.Unconfined) { in <lambda>() constant
DDelayTest.kt31 val deferred = async { in <lambda>() constant
45 val deferred = async { in <lambda>() constant
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/test/
DPromiseTest.kt16 val deferred = promise.asDeferred() in <lambda>() constant
26 val deferred = promise.asDeferred() in <lambda>() constant
40 val deferred = async(start = CoroutineStart.UNDISPATCHED) { in <lambda>() constant
50 val deferred = async { in <lambda>() constant
71 val deferred = async { "OK" } in <lambda>() constant
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DCoroutinesDumpTest.kt17 val deferred = GlobalScope.async { in <lambda>() constant
39 val deferred = GlobalScope.async { in <lambda>() constant
62 val deferred = GlobalScope.async { in <lambda>() constant
90 val deferred = GlobalScope.async { in <lambda>() constant
117 val deferred = GlobalScope.async { in <lambda>() constant
DDebugProbesTest.kt19 val deferred = createDeferred() in <lambda>() constant
40 val deferred = createDeferred() in <lambda>() constant
70 val deferred = createDeferred() in <lambda>() constant
DSanitizedProbesTest.kt26 val deferred = createDeferred() in <lambda>() constant
50 val deferred = createActiveDeferred() in <lambda>() constant
DExample.kt25 val deferred = async { computeValue() } in <lambda>() constant
/external/perfetto/ui/src/base/
Ddeferred_unittest.ts18 const deferred: Deferred<void> = defer<void>(); constant
30 const deferred: Deferred<string> = defer<string>(); constant
36 const deferred: Deferred<string> = defer<string>(); constant
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt36 val deferred = async { in <lambda>() constant
49 val deferred = async { in <lambda>() constant
144 val deferred = async(start = CoroutineStart.UNDISPATCHED) { in <lambda>() constant
157 val deferred = async { in <lambda>() constant
169 val deferred = GlobalScope.async { in <lambda>() constant
209 val deferred = async { in <lambda>() constant
231 val deferred = async { in <lambda>() constant
252 val deferred = async { in <lambda>() constant
275 val deferred = async { in <lambda>() constant
298 val deferred = async { in <lambda>() constant
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestBuildersTest.kt33 val deferred = scope.async { in scopeRunBlocking_advancesPreviousDelay() constant
49 val deferred = scope.async { in dispatcherRunBlocking_advancesPreviousDelay() constant
70 val deferred = scope.async { in scopeRunBlocking_disablesImmedateOnExit() constant
87 val deferred = scope.async { in whenInAsync_runBlocking_nestsProperly() constant
DTestRunBlockingTest.kt45 val deferred = async { in <lambda>() constant
109 val deferred = async { in <lambda>() constant
119 val deferred = async { in <lambda>() constant
133 val deferred = async { in <lambda>() constant
196 val deferred = async { in <lambda>() constant
DTestCoroutineDispatcherTest.kt111 val deferred = scope.async(Dispatchers.Default) { in whenDispatchCalled_runsOnCurrentThread() constant
130 val deferred = scope.async(subject) { in whenAllDispatchersMocked_runsOnSameThread() constant
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/future/
DAsFutureTest.kt18 val deferred = async(start = CoroutineStart.UNDISPATCHED) { in <lambda>() constant
38 val deferred = async { in <lambda>() constant
60 val deferred = GlobalScope.async<Unit> { throw OutOfMemoryError() } in testAsCompletableFutureThrowable() constant
116 val deferred = CompletableDeferred<Int>() in testDeferredCancellation() constant
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/
DCancellableContinuationBenchmark.kt23 val deferred = CompletableDeferred<Int>() in awaitWithSuspension() constant
29 val deferred = CompletableDeferred(1) in awaitNoSuspension() constant
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DStackTraceRecoveryTest.kt34 val deferred = createDeferred(3) in <lambda>() constant
53 val deferred = async<Unit>(coroutineContext + NonCancellable) { in <lambda>() constant
139 val deferred = async<Unit>(NonCancellable, start = CoroutineStart.LAZY) { in <lambda>() constant
177 val deferred = async<Unit>(NonCancellable, start = CoroutineStart.LAZY) { in <lambda>() constant
210 val deferred = async<Unit>(NonCancellable) { in <lambda>() constant
DJobBasicCancellationTest.kt100 val deferred = async(NonCancellable) { in <lambda>() constant
151 val deferred = CompletableDeferred<Int>() in testConsecutiveCancellation() constant
/external/perfetto/src/ipc/
Ddeferred_unittest.cc37 Deferred<TestMessage> deferred; in TEST() local
64 Deferred<TestMessage> deferred; in TEST() local
86 Deferred<TestMessage> deferred; in TEST() local
100 Deferred<TestMessage> deferred; in TEST() local
128 Deferred<TestMessage> deferred; in TEST() local
184 Deferred<TestMessage> deferred; in TEST() local
227 Deferred<TestMessage> deferred; in TEST() local
253 Deferred<TestMessage> deferred; in TEST() local
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-exceptions-01.kt17 val deferred = GlobalScope.async { in <lambda>() constant
Dexample-exceptions-02.kt17 val deferred = GlobalScope.async(handler) { in <lambda>() constant
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/examples/
DToFuture-example.kt13 val deferred = GlobalScope.async { in main() constant
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DPromise.kt54 val deferred = asDynamic().deferred in asDeferred() constant
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/src/
DListenableFuture.kt142 val deferred = CompletableDeferred<T>() in asDeferred() constant
348 private class OuterFuture<T>(private val deferred: Deferred<T>): ListenableFuture<T> { constant in OuterFuture
438 private val deferred: Deferred<T> constant in DeferredListenableFuture

123