Skip to content

Commit

Permalink
Use combineUnsafe for 4 parameter combine (Kotlin#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvanyo committed Dec 1, 2020
1 parent 0e67d0a commit e00d7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/common/src/flow/operators/Zip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public fun <T1, T2, T3, T4, R> combine(
flow3: Flow<T3>,
flow4: Flow<T4>,
transform: suspend (T1, T2, T3, T4) -> R
): Flow<R> = combine(flow, flow2, flow3, flow4) { args: Array<*> ->
): Flow<R> = combineUnsafe(flow, flow2, flow3, flow4) { args: Array<*> ->
transform(
args[0] as T1,
args[1] as T2,
Expand Down

0 comments on commit e00d7d8

Please sign in to comment.