resetMain

Resets state of the Dispatchers.Main to the original main dispatcher.

For example, in Android, the Main thread dispatcher will be set as Dispatchers.Main. This method undoes a dependency injection performed for tests, and so should be used in tear down (@After) methods.

It is unsafe to call this method if alive coroutines launched in Dispatchers.Main exist.