Skip to content

Commit

Permalink
Fix a mistake in the API doc of CoroutineScope (#2888)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasoodFallahpoor committed Aug 23, 2021
1 parent 3e89a17 commit 4508b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/common/src/CoroutineScope.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import kotlin.coroutines.intrinsics.*
* * `CoroutineScope()` uses [Dispatchers.Default] for its coroutines.
* * `MainScope()` uses [Dispatchers.Main] for its coroutines.
*
* **The key part of custom usage of `CustomScope` is cancelling it and the end of the lifecycle.**
* **The key part of custom usage of `CustomScope` is cancelling it at the end of the lifecycle.**
* The [CoroutineScope.cancel] extension function shall be used when the entity that was launching coroutines
* is no longer needed. It cancels all the coroutines that might still be running on behalf of it.
*
Expand Down

0 comments on commit 4508b13

Please sign in to comment.