Skip to content

Commit 4dda779

Browse files
authored
Improve readability of collectLatest documentation.
1 parent 218208d commit 4dda779

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.crucial difference
33
*/
44

55
@file:JvmMultifileClass
@@ -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)