@Override public void onError(final Throwable e) { if (state.active) { Object n = nl.error(e); for (SubjectObserver<T> bo : state.terminate(n)) { bo.onError(e); } } }
@Override public void onError(final Throwable e) { if (state.active) { Object n = nl.error(e); for (SubjectObserver<T> bo : state.terminate(n)) { bo.emitNext(n, state.nl); } } }
@Override public void onCompleted() { if (state.active) { Object n = nl.completed(); for (SubjectObserver<T> bo : state.terminate(n)) { bo.emitNext(n, state.nl); } } }
@Override public void onCompleted() { Object last = state.get(); if (last == null || state.active) { Object n = nl.completed(); for (SubjectObserver<T> bo : state.terminate(n)) { bo.emitNext(n, state.nl); } } }
@Override public void onError(Throwable e) { Object last = state.get(); if (last == null || state.active) { Object n = nl.error(e); for (SubjectObserver<T> bo : state.terminate(n)) { bo.emitNext(n, state.nl); } } }
@Override public void onCompleted() { Object last = state.get(); if (last == null || state.active) { Object n = nl.completed(); for (SubjectObserver<T> bo : state.terminate(n)) { bo.emitNext(n, state.nl); } } }
private void _onCompleted() { if (state.active) { for (SubjectObserver<T> bo : state.terminate(NotificationLite.instance().completed())) { bo.onCompleted(); } } }
private void _onError(final Throwable e) { if (state.active) { for (SubjectObserver<T> bo : state.terminate(NotificationLite.instance().error(e))) { bo.onError(e); } } }
@Override public void onError(Throwable e) { Object last = state.get(); if (last == null || state.active) { Object n = nl.error(e); List<Throwable> errors = null; for (SubjectObserver<T> bo : state.terminate(n)) { try { bo.emitNext(n, state.nl); } catch (Throwable e2) { if (errors == null) { errors = new ArrayList<Throwable>(); } errors.add(e2); } } Exceptions.throwIfAny(errors); } }
@Override public void onError(final Throwable e) { if (ssm.active) { state.error(e); for (SubjectObserver<? super T> o : ssm.terminate(NotificationLite.instance().error(e))) { if (caughtUp(o)) { o.onError(e); } } } }
@Override public void onCompleted() { if (ssm.active) { state.complete(); for (SubjectObserver<? super T> o : ssm.terminate(NotificationLite.instance().completed())) { if (caughtUp(o)) { o.onCompleted(); } } } } /**
@Override public void onCompleted() { if (state.active) { Object last = lastValue; if (last == null) { last = nl.completed(); } for (SubjectObserver<T> bo : state.terminate(last)) { if (last == nl.completed()) { bo.onCompleted(); } else { bo.onNext(nl.getValue(last)); bo.onCompleted(); } } } }