File tree 3 files changed +4
-4
lines changed
kotlinx-coroutines-core/common/src
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public interface SendChannel<in E> {
90
90
/* *
91
91
* Closes this channel.
92
92
* This is an idempotent operation — subsequent invocations of this function have no effect and return `false`.
93
- * Conceptually, its sends a special "close token" over this channel.
93
+ * Conceptually, it sends a special "close token" over this channel.
94
94
*
95
95
* Immediately after invocation of this function,
96
96
* [isClosedForSend] starts returning `true`. However, [isClosedForReceive][ReceiveChannel.isClosedForReceive]
@@ -498,7 +498,7 @@ public interface ChannelIterator<out E> {
498
498
* * When `capacity` is [Channel.CONFLATED] — it creates a _conflated_ channel
499
499
* This channel buffers at most one element and conflates all subsequent `send` and `offer` invocations,
500
500
* so that the receiver always gets the last element sent.
501
- * Back-to-send sent elements are conflated — only the last sent element is received,
501
+ * Back-to-back sent elements are conflated — only the last sent element is received,
502
502
* while previously sent elements **are lost**.
503
503
* [Sending][send] to this channel never suspends, and [offer] always returns `true`.
504
504
*
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public fun <T> Flow<T>.buffer(capacity: Int = BUFFERED): Flow<T> = buffer(capaci
181
181
* **Conflation takes precedence over `buffer()` calls with any other capacity.**
182
182
*
183
183
* Note that any instance of [StateFlow] already behaves as if `conflate` operator is
184
- * applied to it, so applying `conflate` to a `StateFlow` has not effect.
184
+ * applied to it, so applying `conflate` to a `StateFlow` has no effect.
185
185
* See [StateFlow] documentation on Operator Fusion.
186
186
*/
187
187
public fun <T > Flow<T>.conflate (): Flow <T > = buffer(CONFLATED )
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