Skip to content

how to prevent the second observable to execute? #4

Description

@jiangecho

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions