Skip to content

Return a Single (RxJava) of type CheckResponse for those who want a Single instead of a callback #7

Description

@s0h4m

Return a Single<CheckResponse> when looking up for a feature like so

Toggle.with(context).check("custom_network_component").getLatest().defaultState(Toggle.ENABLED).start(checkResponse -> updateUiAfterResponse(checkResponse.featureName, checkResponse.state, checkResponse.featureMetaData, checkResponse.ruleMetadata, checkResponse.cached), exception -> {});

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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions