Persist cache with pull-to-refresh + Sync rate limiting

This commit is contained in:
relikd
2020-06-05 18:12:31 +02:00
parent db41e68f35
commit b4b89f8bb4
5 changed files with 66 additions and 58 deletions

View File

@@ -56,6 +56,7 @@ class GroupedDomainDataSource {
sync.continue()
} else {
pipeline.reload(fromSource: true, whenDone: {
sync.syncNow() // sync outstanding entries in cache
sync.continue()
refreshControl?.endRefreshing()
})