arrow-fx icon indicating copy to clipboard operation
arrow-fx copied to clipboard

`Flow` concurrently operator

Open nomisRev opened this issue 5 years ago • 0 comments

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>`.

nomisRev avatar Dec 12 '20 10:12 nomisRev