Lines Matching refs:setMain
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 accept
311 [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
445 [setMain]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.t…