raceWith

fun <T> Flow<T>.raceWith(flow: Flow<T>, vararg flows: Flow<T>): Flow<T>(source)

Mirrors the current Flow or the other Flows provided of which the first either emits a value or sends a termination event (error or complete event).

See also