Call another Retrofit call on Subject emission
问题 I have a following class: public class SessionStore { Subject<Session, Session> subject; public SessionStore() { subject = new SerializedSubject<>(BehaviorSubject.create(new Session()); } public void set(Session session) { subject.onNext(session); } public Observable<UserSession> observe() { return subject.distinctUntilChanged(); } } In activity I observe the session and perform network operation on each change: private Subscription init() { return sessionStore .observe() .flatMap(new Func1