rxjava-multiple-sources-sample icon indicating copy to clipboard operation
rxjava-multiple-sources-sample copied to clipboard

how to prevent the second observable to execute?

Open jiangecho opened this issue 9 years ago • 1 comments

Thanks.

      Observable<Data> source = Observable.concat(
                sources.memory(),
                sources.disk(),
                sources.network()
            )
            .first(data -> data != null && data.isUpToDate());

I want to know when the first()'s condition is true, is there any way to present the following observable to execute?

Thank you.

jiangecho avatar Dec 31 '15 04:12 jiangecho

sorry, I found my mistake, I put .compose() before .first(), so ... please close this issue.

jiangecho avatar Dec 31 '15 05:12 jiangecho