Skip to content

Commit 81ab2e7

Browse files
authored
Clarify documentation of launchIn (#4144)
1 parent aadaac3 commit 81ab2e7

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public suspend fun Flow<*>.collect(): Unit = collect(NopCollector)
4040
* .launchIn(uiScope)
4141
* ```
4242
*
43-
* Note that the resulting value of [launchIn] is not used and the provided scope takes care of cancellation.
43+
* In this example, note that the `job` returned by [launchIn] is not used, and the provided scope takes care of cancellation.
4444
*/
4545
public fun <T> Flow<T>.launchIn(scope: CoroutineScope): Job = scope.launch {
4646
collect() // tail-call

0 commit comments

Comments
 (0)