Gary Tierney
04/30/2018, 9:06 PMsubscribe callback with that list, updating the tables items.
The doOnNext call gets ran when the refresh action is invoked again, but before subscribe, and disposes of any resources it created earlier. The flatMapSingle maps the list into an Observable<List<T>> that gets fired once, instead of an Observable<T> that get fired with all the lists items I think. The callback in subscribe gets ran every time that all of that completes.