Created
March 18, 2018 06:13
-
-
Save seyedjafariy/b2a779e2e7979bc862b4c0912668d6d6 to your computer and use it in GitHub Desktop.
Reactive Operators Example-1
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
Observable.just("Schedulers Test") | |
.subscribeOn(Schedulers.computation()) | |
.subscribeOn(Schedulers.io()) | |
.subscribeOn(Schedulers.single()) | |
.subscribeOn(Schedulers.newThread()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(new Consumer<String>() { | |
@Override | |
public void accept(String s) throws Exception { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment