Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestDispatchers.kt21 val mainDispatcher = Dispatchers.Main in setMain() constant
22 …require(mainDispatcher is TestMainDispatcher) { "TestMainDispatcher is not set as main dispatcher,… in setMain()
23 mainDispatcher.setDispatcher(dispatcher) in setMain()
35 val mainDispatcher = Dispatchers.Main in resetMain() constant
36 …require(mainDispatcher is TestMainDispatcher) { "TestMainDispatcher is not set as main dispatcher,… in resetMain()
37 mainDispatcher.resetDispatcher() in resetMain()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-slf4j/test/
DMDCContextTest.kt102 val mainDispatcher = kotlin.coroutines.coroutineContext[ContinuationInterceptor]!! in <lambda>() constant
105 withContext(mainDispatcher) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DThreadContextElementTest.kt16 val mainDispatcher = coroutineContext[ContinuationInterceptor]!! in <lambda>() constant
25 withContext(mainDispatcher) { in <lambda>()