-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unify error handling #29
Conversation
README.md
Outdated
@@ -628,10 +628,76 @@ exception being thrown there. | |||
Won't this design cause upstream channels / sources to operate despite the consumer being gone (because of the | |||
exception)? | |||
|
|||
No: the exception should cause the containing scope to finish (or a supervised fork to fail), cancelling any forks | |||
that are operating in the background. Any unused channels can then be garbage-collected. | |||
It depends on two factors: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would mention beforehand that there are two possible designs, of which we picked one, as otherwise this might make the impression that error handling in Ox is dependent on the factors below (which it isn't)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact ... such a discussion would be better placed in and ADR. Maybe this should be moved there? ADRs can be as simple as a text file, e.g. here: https://github.com/softwaremill/tapir/tree/master/doc/adr
The docs can then simply state the current state of affairs, keeping the design discussions separate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, moved the discussion to an ADR.
mapParScope
doesn't rethrow anymorepipeTo
doesn't rethrow when receiving from upstream failsmapParUnordered