You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require(dispatcher !isTestMainDispatcher) { "Dispatchers.setMain(Dispatchers.Main) is prohibited, probably Dispatchers.resetMain() should be used instead" }
21
+
getTestMainDispatcher().setDispatcher(dispatcher)
22
+
}
17
23
18
24
/**
19
25
* Resets state of the [Dispatchers.Main] to the original main dispatcher.
@@ -23,4 +29,6 @@ public expect fun Dispatchers.setMain(dispatcher: CoroutineDispatcher)
23
29
* It is unsafe to call this method if alive coroutines launched in [Dispatchers.Main] exist.
0 commit comments