adte
04/08/2023, 2:20 AMflatMapLatest
the function I should be using?Francesc
04/08/2023, 2:25 AMflatMapLatest
generates a new flow for each emission of the original flow, is that what you want?adte
04/08/2023, 2:31 AMmap
then?flatMapConcat
thenFrancesc
04/08/2023, 2:50 AMadte
04/08/2023, 2:52 AMFrancesc
04/08/2023, 2:53 AMadte
04/08/2023, 2:54 AMFrancesc
04/08/2023, 2:54 AMadte
04/08/2023, 2:55 AMFrancesc
04/08/2023, 2:56 AMadte
04/08/2023, 3:00 AMPatrick Steiger
04/08/2023, 1:58 PMflatMapLatest
- aborts inner flow when new value from outer flow arrives
flatMapConcat
- waits for inner flow to finish (emits all value from it) before processing new values from outer flow
flatMapMerge
- for each new value from outer flow, emits all value from inner flows concurrently