/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/internal/ |
D | TestMainDispatcherJvm.kt | 39 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/ |
D | TestCoroutineScopeTest.kt | 54 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/ |
D | TestMainDispatcher.kt | 6 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/ |
D | TestMainDispatcher.kt | 6 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/ |
D | TestMainDispatcher.kt | 6 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/ |
D | TestMainDispatcher.kt | 6 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/ |
D | TestScopeTest.kt | 60 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/ |
D | Dispatchers.kt | 10 get() = injectedMainDispatcher ?: mainDispatcher in createDefaultDispatcher() 13 private val mainDispatcher = JsMainDispatcher(Default, false) in createDefaultDispatcher() constant
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/ |
D | Dispatchers.kt | 10 get() = injectedMainDispatcher ?: mainDispatcher 13 private val mainDispatcher = createMainDispatcher(Default) constant
|
/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j/test/ |
D | MDCContextTest.kt | 99 val mainDispatcher = kotlin.coroutines.coroutineContext[ContinuationInterceptor]!! in <lambda>() constant 103 withContext(mainDispatcher) { in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/ |
D | ThreadContextElementRestoreTest.kt | 14 val mainDispatcher = coroutineContext[ContinuationInterceptor] as CoroutineDispatcher in <lambda>() constant 78 withContext(mainDispatcher) { in <lambda>()
|
D | ThreadContextElementTest.kt | 17 val mainDispatcher = coroutineContext[ContinuationInterceptor]!! in <lambda>() constant 26 withContext(mainDispatcher) { in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/internal/ |
D | TestMainDispatcher.kt | 18 private val mainDispatcher by lazy(createInnerMain) constant 22 get() = delegate.value ?: mainDispatcher
|