Skip to content

Commit e00d7d8

Browse files
authored
Use combineUnsafe for 4 parameter combine (#2420)
1 parent 0e67d0a commit e00d7d8

File tree

1 file changed

+1
-1
lines changed
  • kotlinx-coroutines-core/common/src/flow/operators

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/operators/Zip.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public fun <T1, T2, T3, T4, R> combine(
153153
flow3: Flow<T3>,
154154
flow4: Flow<T4>,
155155
transform: suspend (T1, T2, T3, T4) -> R
156-
): Flow<R> = combine(flow, flow2, flow3, flow4) { args: Array<*> ->
156+
): Flow<R> = combineUnsafe(flow, flow2, flow3, flow4) { args: Array<*> ->
157157
transform(
158158
args[0] as T1,
159159
args[1] as T2,

0 commit comments

Comments
 (0)