Created
April 17, 2018 19:32
-
-
Save vvsevolodovich/5b21da68fa440e1b700eb8ffdc9c9af2 to your computer and use it in GitHub Desktop.
ObserveOnSingleObserver
This file contains hidden or 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
| ObserveOnSingleObserver(SingleObserver<? super T> actual, Scheduler scheduler) { | |
| this.actual = actual; | |
| this.scheduler = scheduler; | |
| } | |
| @Override | |
| public void onSuccess(T value) { | |
| this.value = value; | |
| Disposable d = scheduler.scheduleDirect(this); | |
| DisposableHelper.replace(this, d); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment