-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"I want the try/catch equivalent of… catch, log and ignore" #572
Comments
Hi @oleg-alexeyev, |
Yes, I know. And I need some recipe how to cook such never-ending flows. For now I have to wrap all callbacks into |
I'm curious in the subject as well. So, my concern is like: what is the point to terminate the source publisher if it isn't its problem that one items in a sequence is wrong? That is really just subscriber responsibility (maybe via We have many other similar use-cases, JMS, AMQP, Kafka etc. There I start a So, @simonbasle , please, describe or share the link "Why?" we have to terminate those hot sources? Thank you! |
I need more information on the source, and the kind of error. For hot sources, it is true that you have kind of a way of ignoring errors that don't happen right in the source but rather due to transformations downstream. Typically, by resubscribing using Let's work with the mouseclick analogy: You have an infinite sequence of mouseclicks, that you react to by drawing a ping animation on your app UI. For the later, if you simply want to log and continue, then you can do This will resubscribe to the mouseclick |
Thank you, @simonbasle ! I think @oleg-alexeyev , |
Seems so, thanks! |
Confirmed, our case of using |
@oleg-alexeyev @artembilan Be aware that using Few solutions: I started with See: #435 |
Having a Flux which must never end, I cannot find an operator which would allow me catch any exception, log it and continue - similar to top level
catch(Throwable)
in a thread which must never end (e.g. AWT Event Dispatch Thread).The text was updated successfully, but these errors were encountered: