Skip to content

Commit def5071

Browse files
committed
Revert knit changes
1 parent ccf5c26 commit def5071

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

kotlinx-coroutines-core/jvm/test/guide/example-compose-05.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ import kotlinx.coroutines.*
99
import kotlin.system.*
1010

1111
fun main() = runBlocking<Unit> {
12-
//sampleStart
12+
//sampleStart
1313
val time = measureTimeMillis {
1414
println("The answer is ${concurrentSum()}")
1515
}
1616
println("Completed in $time ms")
17-
//sampleEnd
17+
//sampleEnd
1818
}
1919

2020
suspend fun concurrentSum(): Int = coroutineScope {
2121
val one = async { doSomethingUsefulOne() }
2222
val two = async { doSomethingUsefulTwo() }
23-
one.await() + two.await()
23+
one.await() + two.await()
2424
}
2525

2626
suspend fun doSomethingUsefulOne(): Int {

kotlinx-coroutines-core/jvm/test/guide/example-compose-06.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ suspend fun failedConcurrentSum(): Int = coroutineScope {
2828
println("Second child throws an exception")
2929
throw ArithmeticException()
3030
}
31-
one.await() + two.await()
31+
one.await() + two.await()
3232
}

0 commit comments

Comments
 (0)