File tree 3 files changed +8
-8
lines changed
kotlinx-coroutines-core/jvm/test/guide
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -420,14 +420,14 @@ fun main() = runBlocking(CoroutineName("main")) {
420
420
val v1 = async(CoroutineName (" v1coroutine" )) {
421
421
delay(500 )
422
422
log(" Computing v1" )
423
- 252
423
+ 6
424
424
}
425
425
val v2 = async(CoroutineName (" v2coroutine" )) {
426
426
delay(1000 )
427
427
log(" Computing v2" )
428
- 6
428
+ 7
429
429
}
430
- log(" The answer for v1 / v2 = ${v1.await() / v2.await()} " )
430
+ log(" The answer for v1 * v2 = ${v1.await() * v2.await()} " )
431
431
// sampleEnd
432
432
}
433
433
```
@@ -443,7 +443,7 @@ The output it produces with `-Dkotlinx.coroutines.debug` JVM option is similar t
443
443
[main @main#1] Started main coroutine
444
444
[main @v1coroutine#2] Computing v1
445
445
[main @v2coroutine#3] Computing v2
446
- [main @main#1] The answer for v1 / v2 = 42
446
+ [main @main#1] The answer for v1 * v2 = 42
447
447
```
448
448
449
449
<!-- - TEST FLEXIBLE_THREAD -->
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ fun main() = runBlocking(CoroutineName("main")) {
11
11
val v1 = async(CoroutineName (" v1coroutine" )) {
12
12
delay(500 )
13
13
log(" Computing v1" )
14
- 252
14
+ 6
15
15
}
16
16
val v2 = async(CoroutineName (" v2coroutine" )) {
17
17
delay(1000 )
18
18
log(" Computing v2" )
19
- 6
19
+ 7
20
20
}
21
- log(" The answer for v1 / v2 = ${v1.await() / v2.await()} " )
21
+ log(" The answer for v1 * v2 = ${v1.await() * v2.await()} " )
22
22
}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class DispatcherGuideTest {
77
77
" [main @main#1] Started main coroutine" ,
78
78
" [main @v1coroutine#2] Computing v1" ,
79
79
" [main @v2coroutine#3] Computing v2" ,
80
- " [main @main#1] The answer for v1 / v2 = 42"
80
+ " [main @main#1] The answer for v1 * v2 = 42"
81
81
)
82
82
}
83
83
You can’t perform that action at this time.
0 commit comments