@@ -162,7 +162,7 @@ Completed in 1017 ms
162
162
<!-- - TEST ARBITRARY_TIME -->
163
163
164
164
This is twice as fast, because we have concurrent execution of two coroutines.
165
- Note, that concurrency with coroutines is always explicit.
165
+ Note that concurrency with coroutines is always explicit.
166
166
167
167
### Lazily started async
168
168
@@ -219,7 +219,7 @@ So, here the two coroutines are defined but not executed as in the previous exam
219
219
the programmer on when exactly to start the execution by calling [ start] [ Job.start ] . We first
220
220
start ` one ` , then start ` two ` , and then await for the individual coroutines to finish.
221
221
222
- Note, that if we have called [ await] [ Deferred.await ] in ` println ` and omitted [ start] [ Job.start ] on individual
222
+ Note that if we have called [ await] [ Deferred.await ] in ` println ` and omitted [ start] [ Job.start ] on individual
223
223
coroutines, then we would have got the sequential behaviour as [ await] [ Deferred.await ] starts the coroutine
224
224
execution and waits for the execution to finish, which is not the intended use-case for laziness.
225
225
The use-case for ` async(start = CoroutineStart.LAZY) ` is a replacement for the
@@ -249,7 +249,7 @@ fun somethingUsefulTwoAsync() = GlobalScope.async {
249
249
250
250
</div >
251
251
252
- Note, that these ` xxxAsync ` functions are ** not** _ suspending_ functions. They can be used from anywhere.
252
+ Note that these ` xxxAsync ` functions are ** not** _ suspending_ functions. They can be used from anywhere.
253
253
However, their use always implies asynchronous (here meaning _ concurrent_ ) execution of their action
254
254
with the invoking code.
255
255
@@ -264,7 +264,7 @@ import kotlinx.coroutines.*
264
264
import kotlin.system.*
265
265
266
266
// sampleStart
267
- // note, that we don't have `runBlocking` to the right of `main` in this example
267
+ // note that we don't have `runBlocking` to the right of `main` in this example
268
268
fun main () {
269
269
val time = measureTimeMillis {
270
270
// we can initiate async actions outside of a coroutine
0 commit comments