Created
April 15, 2017 00:13
-
-
Save CodyEngel/37f366a984709f76bce3c9ee352b0f34 to your computer and use it in GitHub Desktop.
A companion Observer for DisposableManager.
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
public class DisposingObserver<T> implements Observer<T> { | |
@Override | |
@CallSuper | |
public void onSubscribe(Disposable d) { | |
DisposableManager.add(d); | |
} | |
@Override | |
public void onNext(T next) {} | |
@Override | |
public void onError(Throwable e) {} | |
@Override | |
public void onComplete() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment