Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RxGroups helper
protected <T> void autoResubscribe(Observable<T> observable, ResubscriptionObserver<T> resubscriptionObserver) {
if (getObservableGroup() != null && observable != null) {
observable
.compose(getObservableGroup().<T>transform((String) resubscriptionObserver.resubscriptionTag()))
.compose(applySchedulers())
.subscribe(resubscriptionObserver);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.