Skip to content

Instantly share code, notes, and snippets.

@seyedjafariy
Created March 18, 2018 06:13
Show Gist options
  • Save seyedjafariy/b2a779e2e7979bc862b4c0912668d6d6 to your computer and use it in GitHub Desktop.
Save seyedjafariy/b2a779e2e7979bc862b4c0912668d6d6 to your computer and use it in GitHub Desktop.
Reactive Operators Example-1
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