-
-
Save sagarpatel288/ca643ae6d97be5472c2c3a31812013b8 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