Skip to content

Commit 81e51a3

Browse files
authored
Mention default buffering in flattenMerge documentation (#2583)
Fixes #2546
1 parent e15970b commit 81e51a3

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ public fun <T> merge(vararg flows: Flow<T>): Flow<T> = flows.asIterable().merge(
129129
* Applications of [flowOn], [buffer], [produceIn], and [broadcastIn] _after_ this operator are fused with
130130
* its concurrent merging so that only one properly configured channel is used for execution of merging logic.
131131
*
132+
* When [concurrency] is greater than 1, this operator is [buffered][buffer] by default
133+
* and size of its output buffer can be changed by applying subsequent [buffer] operator.
134+
*
132135
* @param concurrency controls the number of in-flight flows, at most [concurrency] flows are collected
133136
* at the same time. By default it is equal to [DEFAULT_CONCURRENCY].
134137
*/

0 commit comments

Comments
 (0)