launchMain

fun CoroutineScope.launchMain(block: suspend CoroutineScope.() -> Unit): Job(source)

Handy equivalent of CoroutineScope.launch to launch directly with the mainDispatcher.

Return

the Job which will be launched by this method.

See also