Rx Java mergeDelayError not working as expected
I'm using RxJava in and Android application with RxAndroid. I'm using mergeDelayError to combine two retro fit network calls into one observable which will process emitted items if either emits one and the error if either has one. This is not working and it is only firing off the onError action when either encounters an error. Now to test this I shifted to a very simple example and still the successAction is never called when I have an onError call. See example below. Observable.mergeDelayError( Observable.error(new RuntimeException()), Observable.just("Hello") ) .observeOn(AndroidSchedulers