Slide 24
Slide 24 text
Flattening flows
• flatMapConcat {} - transforms elements emitted by the original flow by
applying transform, that returns another flow, and then concatenating and
flattening these flows
• flatMapMerge { } - transforms elements emitted by the original flow by
applying transform, that returns another flow, and then merging and flattening
these flows.
• flatMapLatest {} - returns a flow that switches to a new flow produced
by transform function every time the original flow emits a value. When the
original flow emits a new value, the previous flow produced by transform block is
cancelled.