arrow-fx
arrow-fx copied to clipboard
`Flow` concurrently operator
Concurrently allows you to launch a second Flow while coupling the lifecycles of the two Flows.
fun <A, B> Flow<A>.concurrently(other: Flow<B>): Flow<A>
Allows you to launch other and couple it to Flow<A>. When other successfully finishes then Flow<A> continues, if other fails then Flow<A> fails with the same error. Otherwise Flow<A>terminatesotherwith the same reason asFlow<A>`.