It is unclear how to spread errors among subscribers in REactiveX so that Observable is not destroyed.
Example
observable.onNext(1); observable.onNext(2); observable.onError("Nope"); observable.onNext(3);<<won't work.
I accept this limitation as it is, however I still have a scenario where I want the listeners to know downstream that an error has occurred AND ALSO I don't want the watchers to die.
The main use case for this is the user interface code, which, if an error occurs, I do not want to call "Setup" for all the previously observed ones.
Possible alternatives
a) enter user object with data field and error field
class Data { int value; Error * error; }
I do not like this decision
b) Have two streams. One for data and one for errors.
observable.onNext(1); observable.onNext(2); errorObservable.onNext("Error"); observable.onNext(3);
What are the best common practices for this?
source share