mainDispatcher

fun mainDispatcher(): MainCoroutineDispatcher(source)

Handy equivalent of Dispatchers.TargetMain.

Return

the MainCoroutineDispatcher for the main thread.

See also