Skip to content

Commit 8ed3f71

Browse files
committed
Fix a broken guide example
1 parent 366e7be commit 8ed3f71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: docs/topics/coroutine-context-and-dispatchers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Produces the output:
115115
```text
116116
Unconfined : I'm working in thread main
117117
main runBlocking: I'm working in thread main
118-
Unconfined : After delay in thread DefaultDispatcher oroutine#2
118+
Unconfined : After delay in thread DefaultDispatcher-worker-1 @coroutine#2
119119
main runBlocking: After delay in thread main
120120
```
121121

Diff for: kotlinx-coroutines-core/jvm/test/guide/test/DispatcherGuideTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DispatcherGuideTest {
2020
test("ExampleContext02") { kotlinx.coroutines.guide.exampleContext02.main() }.verifyLinesStart(
2121
"Unconfined : I'm working in thread main",
2222
"main runBlocking: I'm working in thread main",
23-
"Unconfined : After delay in thread DefaultDispatcher oroutine#2",
23+
"Unconfined : After delay in thread DefaultDispatcher-worker-1 @coroutine#2",
2424
"main runBlocking: After delay in thread main"
2525
)
2626
}

0 commit comments

Comments
 (0)