-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
FirstAsync throws on error, regardless of Catch<..., ...>(...) in the chain #284
Comments
Thank you. |
Since using var task = Observable.ReturnUnit()
.Select<Unit, Unit>(_ => throw new Exception("Test"))
.OnErrorResumeAsFailure()
.Catch<Unit, Exception>(_ => Observable.ReturnUnit())
.FirstAsync(); |
Yeah, that should work, thank you! However, if at all possible, would it be acceptable to add overloads for all |
The overload suggestion is good, but what behavior do you want? |
I cannot say what decision would be the best architecture-wise. There is a possibility that this is a non-problem altogether and it's just me, not quite having an intuition about Task-related aspects. 🙂 I think having to use At this time I would consider this issue "resolved" if you simply added a doc string that mentions that |
Thank you. |
Hello, it appears that the exceptions that are raised inside of the R3 chains are not handled correctly if the terminal operator is
FirstAsync
(alsoSingleAsync
and possibly others).The minimal reproduction code snippet is:
It will throw an uncaught exception on the
.FirstAsync();
line.I believe that the intended behaviour is to:
faulty
.Thanks for the awesome library, btw
The text was updated successfully, but these errors were encountered: