Robert Jaros
1.6.0-RC
1.6.0-RC2
collect
val stateFlow = MutableStateFlow(State()) val actionFlow = MutableSharedFlow<Action>() launch { actionFlow.collect { stateFlow.value = stateReducer(stateFlow.value, it) } }
launch { actionFlow.onEach { stateFlow.value = stateReducer(stateFlow.value, it) }.collect() }
Alex Vanyo
develop
@InternalCoroutinesApi
Flow.collect
hfhbd
A modern programming language that makes developers happier.