Home
last modified time | relevance | path

Searched refs:GlobalScope (Results 1 – 25 of 94) sorted by relevance

1234

/external/kotlinx.coroutines/kotlinx-coroutines-core/js/test/
DPromiseTest.kt12 fun testPromiseResolvedAsDeferred() = GlobalScope.promise { in <lambda>()
21 fun testPromiseRejectedAsDeferred() = GlobalScope.promise { in <lambda>()
39 fun testCompletedDeferredAsPromise() = GlobalScope.promise { in <lambda>()
49 fun testWaitForDeferredAsPromise() = GlobalScope.promise { in <lambda>()
59 fun testCancellableAwaitPromise() = GlobalScope.promise { in <lambda>()
70 fun testAsPromiseAsDeferred() = GlobalScope.promise { in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/
DConvertTest.kt48 val d = GlobalScope.async { in <lambda>()
64 val d = GlobalScope.async { in <lambda>()
76 val d = GlobalScope.async { in <lambda>()
92 val d = GlobalScope.async { in <lambda>()
108 val d = GlobalScope.async { in <lambda>()
124 val c = GlobalScope.produce { in <lambda>()
138 val c = GlobalScope.produce { in <lambda>()
DObservableAsFlowTest.kt54 GlobalScope.launch(Dispatchers.Unconfined) { in testImmediateCollection()
72 GlobalScope.launch(Dispatchers.Unconfined) { in testOnErrorCancellation()
96 GlobalScope.launch(Dispatchers.Unconfined) { in testUnsubscribeOnCollectionException()
124 val job = GlobalScope.launch(Dispatchers.Unconfined) { in testLateOnSubscribe()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/
DConvertTest.kt48 val d = GlobalScope.async { in <lambda>()
64 val d = GlobalScope.async { in <lambda>()
76 val d = GlobalScope.async { in <lambda>()
92 val d = GlobalScope.async { in <lambda>()
108 val d = GlobalScope.async { in <lambda>()
124 val c = GlobalScope.produce { in <lambda>()
138 val c = GlobalScope.produce { in <lambda>()
DObservableAsFlowTest.kt54 GlobalScope.launch(Dispatchers.Unconfined) { in testImmediateCollection()
72 GlobalScope.launch(Dispatchers.Unconfined) { in testOnErrorCancellation()
96 GlobalScope.launch(Dispatchers.Unconfined) { in testUnsubscribeOnCollectionException()
124 val job = GlobalScope.launch(Dispatchers.Unconfined) { in testLateOnSubscribe()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DThreadContextElementTest.kt21 val job = GlobalScope.launch(element + exceptionHandler) { in <lambda>()
44 val job = GlobalScope.launch( in testUndispatched()
63 GlobalScope.async(Dispatchers.Default + MyElement(data)) { in <lambda>()
68 GlobalScope.async(it + MyElement(newData)) { in <lambda>()
78 GlobalScope.async(it) { in <lambda>()
DThreadLocalTest.kt92 val deferred = GlobalScope.async(intThreadLocal.asContextElement(1)) { in <lambda>()
108 val deferred2 = GlobalScope.async(executor) { in <lambda>()
186 GlobalScope.async(Dispatchers.Default + intThreadLocal.asContextElement(42)) { in <lambda>()
191 GlobalScope.async(it + intThreadLocal.asContextElement(31)) { in <lambda>()
201 GlobalScope.async(it) { in <lambda>()
217 GlobalScope.async { in <lambda>()
222 GlobalScope.async(intThreadLocal.asContextElement()) { in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/test/
DConvertTest.kt49 val d = GlobalScope.async { in <lambda>()
65 val d = GlobalScope.async { in <lambda>()
77 val d = GlobalScope.async { in <lambda>()
93 val c = GlobalScope.produce { in <lambda>()
107 val c = GlobalScope.produce { in <lambda>()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/future/
DFutureTest.kt28 val future = GlobalScope.future { in <lambda>()
40 val future = GlobalScope.future { in <lambda>()
51 val future = GlobalScope.future { in <lambda>()
60 val future = GlobalScope.future { in <lambda>()
72 val future = GlobalScope.future { in <lambda>()
84 val future = GlobalScope.future { in <lambda>()
100 val future = GlobalScope.future { in <lambda>()
136 val future = GlobalScope.future { in <lambda>()
150 val future = GlobalScope.future { in <lambda>()
189 val future = GlobalScope.future(wrapContinuation { in <lambda>()
/external/llvm/tools/llvm-pdbdump/
Dllvm-pdbdump.cpp402 auto GlobalScope(Session->getGlobalScope()); in dumpPretty() local
403 std::string FileName(GlobalScope->getSymbolsFileName()); in dumpPretty()
420 Printer << ": " << GlobalScope->getGuid(); in dumpPretty()
424 Printer << ": " << GlobalScope->getAge(); in dumpPretty()
429 if (GlobalScope->hasCTypes()) in dumpPretty()
431 if (GlobalScope->hasPrivateSymbols()) in dumpPretty()
440 auto Compilands = GlobalScope->findAllChildren<PDBSymbolCompiland>(); in dumpPretty()
455 Dumper.start(*GlobalScope); in dumpPretty()
463 auto Compilands = GlobalScope->findAllChildren<PDBSymbolCompiland>(); in dumpPretty()
476 auto Functions = GlobalScope->findAllChildren<PDBSymbolFunc>(); in dumpPretty()
[all …]
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/test/
DFakeAndroid.kt3 import kotlinx.coroutines.GlobalScope
8 GlobalScope.launch { r.run() } in post()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-exceptions-01.kt11 val job = GlobalScope.launch { // root coroutine with launch in <lambda>()
17 val deferred = GlobalScope.async { // root coroutine with async in <lambda>()
Dexample-exceptions-02.kt14 val job = GlobalScope.launch(handler) { // root coroutine, running in GlobalScope in <lambda>()
17 val deferred = GlobalScope.async(handler) { // also root, but async instead of launch in <lambda>()
Dexample-compose-04.kt26 fun somethingUsefulOneAsync() = GlobalScope.async { in <lambda>()
30 fun somethingUsefulTwoAsync() = GlobalScope.async { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DDoubleChannelCloseStressTest.kt16 … val actor = GlobalScope.actor<Int>(CoroutineName("actor"), start = CoroutineStart.LAZY) { in testDoubleCloseStress()
19 GlobalScope.launch(CoroutineName("sender")) { in testDoubleCloseStress()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt24 val future = GlobalScope.future { in <lambda>()
63 val future = GlobalScope.future { in <lambda>()
72 val future = GlobalScope.future { in <lambda>()
84 val future = GlobalScope.future { in <lambda>()
98 val future = GlobalScope.future { in <lambda>()
114 val future = GlobalScope.future { in <lambda>()
133 GlobalScope.future(start = CoroutineStart.LAZY) {} in <lambda>()
168 val deferred = GlobalScope.async { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DDebugLeaksTest.kt28 GlobalScope.launch(start = CoroutineStart.LAZY) { println(captured) } in testLazyGlobalCoroutineLeak()
45 GlobalScope.launch { in testAbandonedGlobalCoroutineLeak()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcppcoreguidelines-interfaces-global-init.cpp58 static int GlobalScope = makesInt(); variable
59 static int GlobalScopeGoodInit2 = takesInt(GlobalScope);
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DUnconfinedTest.kt93 GlobalScope.launch(Dispatchers.Unconfined) { in <lambda>()
97 GlobalScope.launch(Dispatchers.Unconfined) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/
DBuilders.kt40 newContext = GlobalScope.newCoroutineContext(context + eventLoop) in runBlocking()
46 newContext = GlobalScope.newCoroutineContext(context) in runBlocking()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DBuilders.kt49 newContext = GlobalScope.newCoroutineContext(context + eventLoop) in runBlocking()
55 newContext = GlobalScope.newCoroutineContext(context) in runBlocking()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/test/guide/
Dexample-ui-blocking-01.kt54 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) { in onClick()
68 GlobalScope.launch(Dispatchers.Main) { in fib()
Dexample-ui-blocking-03.kt54 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) { in onClick()
65 GlobalScope.launch(Dispatchers.Main) { in setup()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/
DChannelSinkBenchmark.kt49 …nel.Factory.range(start: Int, count: Int, context: CoroutineContext) = GlobalScope.produce(context… in <lambda>()
57 GlobalScope.produce(context, onCompletion = { cancel() }) { in <lambda>()
DSemaphoreBenchmark.kt54 jobs += GlobalScope.launch { in <lambda>()
72 jobs += GlobalScope.launch { in <lambda>()

1234