Home
last modified time | relevance | path

Searched refs:mainDispatcher (Results 1 – 13 of 13) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/internal/
DTestMainDispatcherJvm.kt39 val mainDispatcher = Main in getTestMainDispatcher() constant
40 …require(mainDispatcher is TestMainDispatcher) { "TestMainDispatcher is not set as main dispatcher,… in getTestMainDispatcher()
41 return mainDispatcher in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/
DTestCoroutineScopeTest.kt54 val mainDispatcher = StandardTestDispatcher(scheduler) in <lambda>() constant
55 Dispatchers.setMain(mainDispatcher) in <lambda>()
59 assertNotSame(mainDispatcher, scope.coroutineContext[ContinuationInterceptor]) in <lambda>()
66 val mainDispatcher = StandardTestDispatcher() in <lambda>() constant
67 Dispatchers.setMain(mainDispatcher) in <lambda>()
72 … assertNotSame(mainDispatcher.scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
73 assertNotSame(mainDispatcher, scope.coroutineContext[ContinuationInterceptor]) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/js/src/internal/
DTestMainDispatcher.kt6 when (val mainDispatcher = Main) { in getTestMainDispatcher() method
7 is TestMainDispatcher -> mainDispatcher in getTestMainDispatcher()
8 else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/native/src/internal/
DTestMainDispatcher.kt6 when (val mainDispatcher = Main) { in getTestMainDispatcher() method
7 is TestMainDispatcher -> mainDispatcher in getTestMainDispatcher()
8 else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/wasmWasi/src/internal/
DTestMainDispatcher.kt6 when (val mainDispatcher = Main) { in getTestMainDispatcher() method
7 is TestMainDispatcher -> mainDispatcher in getTestMainDispatcher()
8 else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/wasmJs/src/internal/
DTestMainDispatcher.kt6 when (val mainDispatcher = Main) { in getTestMainDispatcher() method
7 is TestMainDispatcher -> mainDispatcher in getTestMainDispatcher()
8 else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
DTestScopeTest.kt60 val mainDispatcher = StandardTestDispatcher(scheduler) in <lambda>() constant
61 Dispatchers.setMain(mainDispatcher) in <lambda>()
65 assertNotSame(mainDispatcher, scope.coroutineContext[ContinuationInterceptor]) in <lambda>()
72 val mainDispatcher = StandardTestDispatcher() in <lambda>() constant
73 Dispatchers.setMain(mainDispatcher) in <lambda>()
78 … assertNotSame(mainDispatcher.scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
79 assertNotSame(mainDispatcher, scope.coroutineContext[ContinuationInterceptor]) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jsAndWasmShared/src/
DDispatchers.kt10 get() = injectedMainDispatcher ?: mainDispatcher in createDefaultDispatcher()
13 private val mainDispatcher = JsMainDispatcher(Default, false) in createDefaultDispatcher() constant
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/
DDispatchers.kt10 get() = injectedMainDispatcher ?: mainDispatcher
13 private val mainDispatcher = createMainDispatcher(Default) constant
/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j/test/
DMDCContextTest.kt99 val mainDispatcher = kotlin.coroutines.coroutineContext[ContinuationInterceptor]!! in <lambda>() constant
103 withContext(mainDispatcher) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DThreadContextElementRestoreTest.kt14 val mainDispatcher = coroutineContext[ContinuationInterceptor] as CoroutineDispatcher in <lambda>() constant
78 withContext(mainDispatcher) { in <lambda>()
DThreadContextElementTest.kt17 val mainDispatcher = coroutineContext[ContinuationInterceptor]!! in <lambda>() constant
26 withContext(mainDispatcher) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/internal/
DTestMainDispatcher.kt18 private val mainDispatcher by lazy(createInnerMain) constant
22 get() = delegate.value ?: mainDispatcher