= false
var offset = 0
return fun () = Observable.just(isFetching)
.filter { !isFetching }
.doOnNext { isFetching = true }
.flatMap { repository.getArticles(category, offset) }
.doOnNext { isFetching = false }
.doOnNext { offset += it.size }
} • ಡΈࠐΈதϑϥάͱΦϑηοτΛཧ • ಡΈࠐΈதʹୟ͍ͯԿى͜Βͳ͍ • Activity/Fragment͔ΒΈΔͱɺԿߟ͑ͣʹୟ͚OK