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 {
20
20
}
21
21
```
22
22
23
- > Play with coroutines online [ here] ( https://pl.kotl.in/hG_tKbid_ )
23
+ > Play with coroutines online [ here] ( https://pl.kotl.in/9zva88r7S )
24
24
25
25
## Modules
26
26
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
71
71
### Structured concurrency
72
72
73
73
Coroutines 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]
75
75
which delimits the lifetime of the coroutine. The above example shows that [ runBlocking] establishes the corresponding
76
76
scope and that is why the previous example waits until ` World! ` is printed after a second's delay and only then exits.
77
77
You can’t perform that action at this time.
0 commit comments