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

@@ -27,6 +27,7 @@ class TVCHostDetails: UITableViewController {
self?.dataSource = AppDB?.timesForDomain(self?.fullDomain ?? "", since: sync.tsEarliest) ?? []
DispatchQueue.main.sync {
self?.tableView.reloadData()
sync.syncNow() // sync outstanding entries in cache
refreshControl?.endRefreshing()
}
}