[android-components](../../index.md) / [mozilla.components.support.test.rule](../index.md) / [MainCoroutineRule](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`MainCoroutineRule(testDispatcher: CoroutineDispatcher = createTestCoroutinesDispatcher())`

JUnit rule to change Dispatchers.Main in coroutines.

