Searched refs:setMain (Results 1 – 11 of 11) sorted by relevance
22 Dispatchers.setMain(Dispatchers.Main) in <lambda>()28 Dispatchers.setMain(Dispatchers.Unconfined) in <lambda>()34 Dispatchers.setMain(threadPool) in <lambda>()45 Dispatchers.setMain(Dispatchers.Unconfined) in <lambda>()55 Dispatchers.setMain(ImmediateDispatcher()) in <lambda>()61 Dispatchers.setMain(RegularDispatcher()) in <lambda>()
20 `Dispatchers.setMain` will override the `Main` dispatcher in test situations. This is helpful when …28 You can override the `Main` implementation using [setMain][setMain] method with any [CoroutineDispa…38 Dispatchers.setMain(mainThreadSurrogate)55 Calling `setMain` or `resetMain` immediately changes the `Main` dispatcher globally. The testable v…56 …chers.Main` installed by the `ServiceLoader` will delegate to the dispatcher provided by `setMain`.239 …sier to provide a [TestCoroutineDispatcher]. For example [Dispatchers.setMain][setMain] will accept311 [Dispatchers.setMain][setMain] then expose [TestCoroutineScope] for use in tests.316 …re it is easier to provide a [TestCoroutineDispatcher]. For example [Dispatchers.setMain][setMain] 339 Dispatchers.setMain(testDispatcher)357 // launch will use the testDispatcher provided by setMain[all …]
19 public fun Dispatchers.setMain(dispatcher: CoroutineDispatcher) { in setMain() method
18 Dispatchers.setMain(Dispatchers.Unconfined) in setUp()
41 Dispatchers.setMain(Dispatchers.Unconfined) in testComponentAfterReset()
30 Dispatchers.setMain(Dispatchers.Unconfined) in testComponentAfterReset()
55 …public static final fun setMain (Lkotlinx/coroutines/Dispatchers;Lkotlinx/coroutines/CoroutineDisp…
META-INF/ META-INF/MANIFEST.MF META-INF/kotlin-ant. ...
META-INF/ META-INF/MANIFEST.MF META-INF/backend-common. ...
43 * [Dispatchers.setMain] to override [Dispatchers.Main] in tests;256 [Dispatchers.setMain]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.…
1285 public BaseProperty setMain(String alias, String shortAlias, in setMain() method in UnicodeProperty.BaseProperty