launchOnResume

fun <T> Flow<T>.launchOnResume(): Job

Every time the View Lifecycle State reaches RESUMED, create a new coroutine and collect this Flow.

See also

kotlinx.coroutines.flow.launchIn

Sources

Link copied to clipboard