a guest Mar 19th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 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)
RAW Paste Data