Searched refs:TestMainDispatcher (Results 1 – 7 of 7) sorted by relevance
9 internal actual fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher = in getTestMainDispatcher()11 is TestMainDispatcher -> mainDispatcher in getTestMainDispatcher()12 else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } in getTestMainDispatcher()
16 return TestMainDispatcher(dispatcher) in createDispatcher()27 internal actual fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher { in getTestMainDispatcher()29 …require(mainDispatcher is TestMainDispatcher) { "TestMainDispatcher is not set as main dispatcher,… in getTestMainDispatcher()
10 import kotlinx.coroutines.test.internal.TestMainDispatcher87 scheduler ?: TestMainDispatcher.currentTestScheduler ?: TestCoroutineScheduler(), name) in UnconfinedTestDispatcher()146 scheduler ?: TestMainDispatcher.currentTestScheduler ?: TestCoroutineScheduler(), name) in StandardTestDispatcher()
23 …require(dispatcher !is TestMainDispatcher) { "Dispatchers.setMain(Dispatchers.Main) is prohibited,… in setMain()
16 internal class TestMainDispatcher(delegate: CoroutineDispatcher): class51 get() = (Dispatchers.Main as? TestMainDispatcher)?.delegate?.value as? TestDispatcher in scheduleResumeAfterDelay()96 internal expect fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher
27 val mainAtStart = TestMainDispatcher.currentTestDispatcher in <lambda>()38 assertSame(mainAtStart, TestMainDispatcher.currentTestDispatcher) in <lambda>()