Last active
January 22, 2021 00:04
-
-
Save mitchtabian/7caedf50054cfb053d0719927fe8151c to your computer and use it in GitHub Desktop.
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
Observable<Task> taskObservable = Observable // create a new Observable object | |
.fromIterable(DataSource.createTasksList()) // apply 'fromIterable' operator | |
.subscribeOn(Schedulers.io()) // designate worker thread (background) | |
.observeOn(AndroidSchedulers.mainThread()); // designate observer thread (main thread) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment