Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5495a2b5 authored by Julia Tuttle's avatar Julia Tuttle Committed by Android (Google) Code Review
Browse files

Merge "JavaAdapter: add combineFlows with six inputs" into main

parents d81e2cc9 051a3623
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -135,3 +135,15 @@ fun <T1, T2, T3, T4, T5, R> combineFlows(
): Flow<R> {
    return combine(flow, flow2, flow3, flow4, flow5, transform)
}

fun <T1, T2, T3, T4, T5, T6, R> combineFlows(
    flow: Flow<T1>,
    flow2: Flow<T2>,
    flow3: Flow<T3>,
    flow4: Flow<T4>,
    flow5: Flow<T5>,
    flow6: Flow<T6>,
    transform: (T1, T2, T3, T4, T5, T6) -> R,
): Flow<R> {
    return combine(flow, flow2, flow3, flow4, flow5, flow6, transform)
}