File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1463,13 +1463,15 @@ fun main() = runBlocking<Unit> {
14631463
14641464A "Caught ..." message is not printed despite there being a ` catch ` operator:
14651465
1466- <!-- - TEST EXCEPTION
1466+ ``` text
14671467Emitting 1
146814681
14691469Emitting 2
14701470Exception in thread "main" java.lang.IllegalStateException: Collected 2
14711471 at ...
1472- -->
1472+ ```
1473+
1474+ <!-- - TEST EXCEPTION -->
14731475
14741476#### Catching declaratively
14751477
@@ -1510,12 +1512,14 @@ fun main() = runBlocking<Unit> {
15101512Now we can see that a "Caught ..." message is printed and so we can catch all the exceptions without explicitly
15111513using a ` try/catch ` block:
15121514
1513- <!-- - TEST EXCEPTION
1515+ ``` text
15141516Emitting 1
151515171
15161518Emitting 2
15171519Caught java.lang.IllegalStateException: Collected 2
1518- -->
1520+ ```
1521+
1522+ <!-- - TEST EXCEPTION -->
15191523
15201524### Flow completion
15211525
You can’t perform that action at this time.
0 commit comments