galex
08/15/2023, 12:17 PMBig Chungus
08/15/2023, 12:37 PMBig Chungus
08/15/2023, 12:37 PMMR3Y
08/15/2023, 12:41 PMflowA.flatMapLatest { latestValue ->
// flowB has access to the latestValue, whenever flowA has new emissions, the collection will be cancelled, and a new latestValue will be emitted.
}
xoangon
08/15/2023, 1:33 PMzip
, combine
and merge
xoangon
08/15/2023, 1:36 PMflatMapMerge
, flatMapConcat
and flatMapLatest
are used to perform an operation on a Flow
that returns another Flow
and bring the results togethergalex
08/16/2023, 7:41 AMflatMapLatest
worked like a charm! 💙