mainScope

fun LifecycleOwner.mainScope(): CoroutineScope(source)

Extension function to create a CoroutineScope on the current Lifecycle using the platform mainDispatcher.

Return

a lifecycle-aware CoroutineScope on mainDispatcher

See also