collectAsState

open fun <V> Flow<V>.collectAsState(scope: CoroutineScope, initialState: Async<V>? = Loading(), reducer: S.(Async<V>) -> S): Job

Collect flow of values and update state with reducer.