Skip to content

Fix some sample outputs not being displayed in flow.md #2201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions docs/flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -1463,13 +1463,15 @@ fun main() = runBlocking<Unit> {

A "Caught ..." message is not printed despite there being a `catch` operator:

<!--- TEST EXCEPTION
```text
Emitting 1
1
Emitting 2
Exception in thread "main" java.lang.IllegalStateException: Collected 2
at ...
-->
```

<!--- TEST EXCEPTION -->

#### Catching declaratively

Expand Down Expand Up @@ -1510,12 +1512,14 @@ fun main() = runBlocking<Unit> {
Now we can see that a "Caught ..." message is printed and so we can catch all the exceptions without explicitly
using a `try/catch` block:

<!--- TEST EXCEPTION
```text
Emitting 1
1
Emitting 2
Caught java.lang.IllegalStateException: Collected 2
-->
```

<!--- TEST EXCEPTION -->

### Flow completion

Expand Down