cleanupTestCoroutines

@ExperimentalCoroutinesApi abstract fun cleanupTestCoroutines(): Unit

Call after test code completes to ensure that the dispatcher is properly cleaned up.

Exceptions

UncompletedCoroutinesError - if any pending tasks are active, however it will not throw for suspended coroutines.