hey folks! I’m trying to merge two flows, is this ...
# coroutines
a
hey folks! I’m trying to merge two flows, is this the simpliest way to do that currently?
Copy code
fun <T> merge(f1: Flow<T>, f2: Flow<T>): Flow<T> =
    flowOf(f1, f2).flattenMerge()
v
Hi,
flattenMerge
does it concurrently and
flattenConcat
concatenates it. Both are fine
a
thank you so much!