combineFlatten

inline fun <T> Iterable<Flow<T>>.combineFlatten(): Flow<List<T>>

Combines iterable collection of flows and flattens it into single flow of emitted values list. List> -> Flow>

Example: val flowList = listOf( flowOf("a", "b", "c", "d"), flowOf("a1", "b1", "c1"), flowOf("a2", "b2") flowOf("a3"), )

val listFlow = flowList.combineFlatten()

listFlow.collect { value: List -> println(value) } Output: a, a1, a2, a3, b, b1, b2, a3, c, c1, b2, a3, d, c1, b2, a3