Skip to content

Commit

Permalink
Fix a typo in coroutines basics doc (Kotlin#2909)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandyiscool committed Sep 2, 2021
1 parent 46c0026 commit 4d1c216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/coroutines-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Coroutines follow a principle of
which delimits the lifetime of the coroutine. The above example shows that [runBlocking] establishes the corresponding
scope and that is why the previous example waits until `World!` is printed after a second's delay and only then exits.

In the real application, you will be launching a lot of coroutines. Structured concurrency ensures that they are not
In a real application, you will be launching a lot of coroutines. Structured concurrency ensures that they are not
lost and do not leak. An outer scope cannot complete until all its children coroutines complete.
Structured concurrency also ensures that any errors in the code are properly reported and are never lost.

Expand Down

0 comments on commit 4d1c216

Please sign in to comment.