File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ suspend fun main() = coroutineScope {
2020}
2121```
2222
23- > Play with coroutines online [ here] ( https://pl.kotl.in/hG_tKbid_ )
23+ > Play with coroutines online [ here] ( https://pl.kotl.in/9zva88r7S )
2424
2525## Modules
2626
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ as threads are expensive resources and blocking them is inefficient and is often
7171### Structured concurrency
7272
7373Coroutines follow a principle of
74- ** structured concurrency** which means that new coroutines can be only launched in a specific [ CoroutineScope]
74+ ** structured concurrency** which means that new coroutines can only be launched in a specific [ CoroutineScope]
7575which delimits the lifetime of the coroutine. The above example shows that [ runBlocking] establishes the corresponding
7676scope and that is why the previous example waits until ` World! ` is printed after a second's delay and only then exits.
7777
You can’t perform that action at this time.
0 commit comments