Skip to content

Commit dda99e2

Browse files
authored
Improve readability of collectLatest documentation. (#2554)
1 parent 88708a0 commit dda99e2

File tree

1 file changed

+2
-2
lines changed
  • kotlinx-coroutines-core/common/src/flow/terminal

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public suspend inline fun <T> Flow<T>.collectIndexed(crossinline action: suspend
8787

8888
/**
8989
* Terminal flow operator that collects the given flow with a provided [action].
90-
* The crucial difference from [collect] is that when the original flow emits a new value, [action] block for previous
91-
* value is cancelled.
90+
* The crucial difference from [collect] is that when the original flow emits a new value
91+
* then the [action] block for the previous value is cancelled.
9292
*
9393
* It can be demonstrated by the following example:
9494
*

0 commit comments

Comments
 (0)