mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make SyncDatabase selectPendingCount async.
This commit is contained in:
@@ -33,11 +33,11 @@ public struct SyncDatabase {
|
||||
public func selectForProcessing() throws -> [SyncStatus] {
|
||||
return try syncStatusTable.selectForProcessing()
|
||||
}
|
||||
|
||||
public func selectPendingCount() throws -> Int {
|
||||
return try syncStatusTable.selectPendingCount()
|
||||
|
||||
public func selectPendingCount(completion: @escaping DatabaseIntCompletionBlock) {
|
||||
syncStatusTable.selectPendingCount(completion)
|
||||
}
|
||||
|
||||
|
||||
public func resetSelectedForProcessing(_ articleIDs: [String], completion: DatabaseCompletionBlock? = nil) {
|
||||
syncStatusTable.resetSelectedForProcessing(articleIDs, completion: completion)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user