Created
March 6, 2019 13:04
-
-
Save JEuler/6953bf4f5cc07c641898b8964faa22d8 to your computer and use it in GitHub Desktop.
RxGroups helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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