RxDiffUtil is an Rx wrapper of the Android DiffUtil
library to calculate and apply a DiffUtil.DiffResult
.
Concurrency and threading are handled within the Rx chain directly by subscribing to the resulting Completable
.
obs.onBackpressureLatest()
.to(RxDiffUtil.with(adapter))
.calculateDiff(callbackFactory()))
.applyDiff(AdapterImpl::setUnsafe)
.subscribe();
from The Android Arsenal
No comments:
Post a Comment