Skip to content

Commit e4c859d

Browse files
committed
~ zip docs
1 parent 787e5d0 commit e4c859d

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,11 @@ public inline fun <reified T, R> combineTransform(
297297
* println(it) // Will print "1a 2b 3c"
298298
* }
299299
* ```
300+
*
301+
* ### Buffering
302+
*
303+
* The upstream flow is collected sequentially in the same coroutine without any buffering, while the
304+
* [other] flow is collected concurrently as if `buffer(0)` is used. See documentation in the [buffer] operator
305+
* for explanation. You can use additional calls to the [buffer] operator as needed for more concurrency.
300306
*/
301307
public fun <T1, T2, R> Flow<T1>.zip(other: Flow<T2>, transform: suspend (T1, T2) -> R): Flow<R> = zipImpl(this, other, transform)

0 commit comments

Comments
 (0)