Zhuinden / flow-combinetuple-kt

[ACTIVE] Helper function to combine Flow into tuples.
Apache License 2.0
49 stars 3 forks source link

Combine Flow<T>.combine(Flow) into Pair #2

Open Zhuinden opened 2 months ago

Zhuinden commented 2 months ago

@JvmName(name = "flowCombine") fun <T1, T2, R> Flow<T1>.combine( flow: Flow<T2>, transform: suspend (a: T1, b: T2) -> R ): Flow<R>

Should have a combineTuple variant directly to Pair.

Zhuinden commented 2 months ago

Practically the same as

flow.combine(otherFlow, ::Pair)