Skip to content

Commit

Permalink
Mention default buffering in flattenMerge documentation (#2583)
Browse files Browse the repository at this point in the history
Fixes #2546
  • Loading branch information
qwwdfsad committed Mar 18, 2021
1 parent e15970b commit 81e51a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kotlinx-coroutines-core/common/src/flow/operators/Merge.kt
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ public fun <T> merge(vararg flows: Flow<T>): Flow<T> = flows.asIterable().merge(
* Applications of [flowOn], [buffer], [produceIn], and [broadcastIn] _after_ this operator are fused with
* its concurrent merging so that only one properly configured channel is used for execution of merging logic.
*
* When [concurrency] is greater than 1, this operator is [buffered][buffer] by default
* and size of its output buffer can be changed by applying subsequent [buffer] operator.
*
* @param concurrency controls the number of in-flight flows, at most [concurrency] flows are collected
* at the same time. By default it is equal to [DEFAULT_CONCURRENCY].
*/
Expand Down

0 comments on commit 81e51a3

Please sign in to comment.