File tree 2 files changed +3
-3
lines changed
kotlinx-coroutines-core/common/src/flow/operators
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1117,7 +1117,7 @@ as such, there is a family of flattening operators on flows.
1117
1117
1118
1118
#### flatMapConcat
1119
1119
1120
- Concatenating mode is implemented by [ flatMapConcat ] and [ flattenConcat] operators. They are the most direct
1120
+ Concatenating mode is implemented by [ map ] and [ flattenConcat] operators. They are the most direct
1121
1121
analogues of the corresponding sequence operators. They wait for the inner flow to complete before
1122
1122
starting to collect the next one as the following example shows:
1123
1123
@@ -1166,7 +1166,7 @@ The sequential nature of [flatMapConcat] is clearly seen in the output:
1166
1166
1167
1167
Another flattening mode is to concurrently collect all the incoming flows and merge their values into
1168
1168
a single flow so that values are emitted as soon as possible.
1169
- It is implemented by [ flatMapMerge ] and [ flattenMerge] operators. They both accept an optional
1169
+ It is implemented by [ map ] and [ flattenMerge] operators. They both accept an optional
1170
1170
` concurrency ` parameter that limits the number of concurrent flows that are collected at the same time
1171
1171
(it is equal to [ DEFAULT_CONCURRENCY] by default).
1172
1172
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public val DEFAULT_CONCURRENCY: Int = systemProp(DEFAULT_CONCURRENCY_PROPERTY_NA
34
34
* Transforms elements emitted by the original flow by applying [transform], that returns another flow,
35
35
* and then concatenating and flattening these flows.
36
36
*
37
- * This method is is a shortcut for `map(transform).flattenConcat()`. See [flattenConcat].
37
+ * This method is a shortcut for `map(transform).flattenConcat()`. See [flattenConcat].
38
38
*
39
39
* Note that even though this operator looks very familiar, we discourage its usage in a regular application-specific flows.
40
40
* Most likely, suspending operation in [map] operator will be sufficient and linear transformations are much easier to reason about.
You can’t perform that action at this time.
0 commit comments