Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: reference to The Hitchhiker's Guide to the Galaxy #4082

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/topics/coroutine-context-and-dispatchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@ fun main() = runBlocking(CoroutineName("main")) {
val v1 = async(CoroutineName("v1coroutine")) {
delay(500)
log("Computing v1")
252
6
}
val v2 = async(CoroutineName("v2coroutine")) {
delay(1000)
log("Computing v2")
6
7
}
log("The answer for v1 / v2 = ${v1.await() / v2.await()}")
log("The answer for v1 * v2 = ${v1.await() * v2.await()}")
//sampleEnd
}
```
Expand All @@ -443,7 +443,7 @@ The output it produces with `-Dkotlinx.coroutines.debug` JVM option is similar t
[main @main#1] Started main coroutine
[main @v1coroutine#2] Computing v1
[main @v2coroutine#3] Computing v2
[main @main#1] The answer for v1 / v2 = 42
[main @main#1] The answer for v1 * v2 = 42
```

<!--- TEST FLEXIBLE_THREAD -->
Expand Down
6 changes: 3 additions & 3 deletions kotlinx-coroutines-core/jvm/test/guide/example-context-08.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ fun main() = runBlocking(CoroutineName("main")) {
val v1 = async(CoroutineName("v1coroutine")) {
delay(500)
log("Computing v1")
252
6
}
val v2 = async(CoroutineName("v2coroutine")) {
delay(1000)
log("Computing v2")
6
7
}
log("The answer for v1 / v2 = ${v1.await() / v2.await()}")
log("The answer for v1 * v2 = ${v1.await() * v2.await()}")
}