Skip to content

Commit 938c5e9

Browse files
committed
More stable output for guide-exceptions-05.kt
1 parent fac516f commit 938c5e9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/kotlinx-coroutines-core/test/guide/example-exceptions-05.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ fun main(args: Array<String>) = runBlocking {
2323
}
2424
}
2525
launch {
26+
delay(100)
2627
throw IOException()
2728
}
2829
delay(Long.MAX_VALUE)

docs/exception-handling.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ fun main(args: Array<String>) = runBlocking {
275275
}
276276
}
277277
launch {
278+
delay(100)
278279
throw IOException()
279280
}
280281
delay(Long.MAX_VALUE)

0 commit comments

Comments
 (0)