Searched refs:setMain (Results 1 – 15 of 15) sorted by relevance
15 Dispatchers.setMain(StandardTestDispatcher()) in setUp()58 assertFailsWith<IllegalArgumentException> { Dispatchers.setMain(Dispatchers.Main) } in testSelfSet()63 Dispatchers.setMain(ImmediateDispatcher()) in <lambda>()69 Dispatchers.setMain(RegularDispatcher()) in <lambda>()
69 Dispatchers.setMain(dispatcher1) in <lambda>()
63 Dispatchers.setMain(mainDispatcher) in <lambda>()75 Dispatchers.setMain(mainDispatcher) in <lambda>()
158 Dispatchers.setMain(dispatcher1) in <lambda>()
28 Dispatchers.setMain(Dispatchers.Unconfined) in <lambda>()34 Dispatchers.setMain(threadPool) in <lambda>()45 Dispatchers.setMain(Dispatchers.Unconfined) in <lambda>()
15 | [Dispatchers.setMain] | Mocks the main dispatcher using the provided one. If mocked with a [TestD…37 `Dispatchers.setMain` will override the `Main` dispatcher in test scenarios.46 The `Main` implementation can be overridden using [Dispatchers.setMain][setMain] method with any [C…57 Dispatchers.setMain(mainThreadSurrogate)75 Calling `setMain` or `resetMain` immediately changes the `Main` dispatcher globally.284 Dispatchers.setMain(StandardTestDispatcher(scope.testScheduler))443 [Dispatchers.setMain]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlin…446 [setMain]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines…
44 …passed to each of them, or all of them should be constructed after `Dispatchers.setMain` is called…410 Dispatchers.setMain(dispatcher)432 Dispatchers.setMain(StandardTestDispatcher())
56 Dispatchers.setMain(mainDispatcher) in <lambda>()68 Dispatchers.setMain(mainDispatcher) in <lambda>()
22 public fun Dispatchers.setMain(dispatcher: CoroutineDispatcher) { in setMain() method
18 Dispatchers.setMain(Dispatchers.Unconfined) in setUp()
42 Dispatchers.setMain(Dispatchers.Unconfined) in testComponentAfterReset()
31 Dispatchers.setMain(Dispatchers.Unconfined) in testComponentAfterReset()
45 * [Dispatchers.setMain] to override [Dispatchers.Main] in tests;244 [Dispatchers.setMain]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlin…
110 …public static final fun setMain (Lkotlinx/coroutines/Dispatchers;Lkotlinx/coroutines/CoroutineDisp…
1285 public BaseProperty setMain(String alias, String shortAlias, in setMain() method in UnicodeProperty.BaseProperty