Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaves authored Oct 19, 2020
1 parent 480511d commit 224a1a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ def main():
To demonstrate exception handling the above example can be changed to:

```python
return app(True) + make(
return app() + make(lambda: gui)
```

This will result in safely handling the divide by zero exception and will run the following without interrupting the flow of the application:

```python
Failure: lambda x: deps.popup(err + x),
sm.Failure: lambda x: deps.popup(err + x),
```

## Example monad `Future`
Expand Down

0 comments on commit 224a1a5

Please sign in to comment.