Add AccountManager.resumeAll, Account.resume. Add suspend() and resume() to AccountDelegate and to individual AccountDelegate instances.

This commit is contained in:
Brent Simmons
2019-11-29 22:57:14 -08:00
parent 8ee169d915
commit b5f1c69f8e
8 changed files with 75 additions and 5 deletions

View File

@@ -436,7 +436,18 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
}
}
// MARK: Suspend and Resume (for iOS)
/// Suspend the sync database so that it can close its SQLite file.
func suspend() {
database.suspend()
}
/// Resume the sync database let it reopen its SQLite file.
func resume() {
database.resume()
}
}
// MARK: Private