You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//A new observer would be immediately notified of the latest data from the LiveData.
29
+
observable
30
+
.subscribeOn(Schedulers.computation())
31
+
.observeOn(AndroidSchedulers.mainThread())
32
+
.subscribe(getObserver());
33
+
}
34
+
});
35
+
36
+
getObservable()
37
+
.subscribeOn(Schedulers.computation())
38
+
.observeOn(AndroidSchedulers.mainThread()/*, true*/) //you can use observeOn(scheduler, true) to ensure onNext isn't skipped if there is a call to onError
39
+
.subscribe(getObserver());
40
+
}
41
+
42
+
/**
43
+
* Expected Behavior -> Calls to emitter.onNext(1) , emitter.onNext(2), emitter.onError(new Throwable()), emitter.onNext(3), emitter.onComplete() would result
44
+
* in the Observable emitting 1, 2, 3, error_message and onComplete. But actual behavior is when onError gets emitted, the remaining items like
45
+
* onNext(3) etc are ignored/not emitted.
46
+
* More here : https://github.com/ReactiveX/RxJava/issues/2887 and here https://github.com/ReactiveX/RxJava/issues/2887#issuecomment-345299685
47
+
*
48
+
* Note to future self because I know I'm going to forget this (again): you can use `.observeOn(Scheduler scheduler, boolean delayError)` to
0 commit comments