I've got two `MutableStateFlow`, and I want to cre...
# coroutines
r
I've got two
MutableStateFlow
, and I want to create a third
MutableStateFlow
which depends on the other two states, so when one of them changes, the final one should update. I assumed a
select
would do the trick here, or are there other ways?
x
I know that
Flow::combine
is used to combine 2 flows by taking the latest change on any of them. It looks like it may be what you're looking for