Base class for special CoroutineDispatcher which is confined to application "Main" or "UI" thread and used for any UI-based activities. Instance of
MainDispatcher can be obtained by Dispatchers.Main.
Platform may or may not provide instance of
MainDispatcher, see documentation to Dispatchers.Main
Returns a name of this main dispatcher for debugging purposes.
Returns dispatcher that executes coroutines immediately when it is already in the right context (e.g.