Skip to content

Commit 1200d47

Browse files
committed
Improve consumeAsFlow documentation
Fixed #1576
1 parent f86af23 commit 1200d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/Channels.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public suspend fun <T> FlowCollector<T>.emitAll(channel: ReceiveChannel<T>) {
7171
* ### Cancellation semantics
7272
*
7373
* 1) Flow consumer is cancelled when the original channel is cancelled.
74-
* 2) Flow consumer completes normally when the original channel completes (~is closed) normally.
74+
* 2) Flow consumer completes normally when the original channel was closed normally and then fully consumed.
7575
* 3) If the flow consumer fails with an exception, channel is cancelled.
7676
*
7777
* ### Operator fusion

0 commit comments

Comments
 (0)