mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Delete completion-based insertStatuses function.
This commit is contained in:
@@ -122,18 +122,6 @@ public typealias SyncStatusArticleIDsCompletionBlock = @Sendable (SyncStatusArti
|
||||
|
||||
public extension SyncDatabase {
|
||||
|
||||
nonisolated func insertStatuses(_ statuses: [SyncStatus], completion: @escaping DatabaseCompletionBlock) {
|
||||
|
||||
Task { @MainActor in
|
||||
do {
|
||||
try await self.insertStatuses(statuses)
|
||||
completion(nil)
|
||||
} catch {
|
||||
completion(DatabaseError.suspended)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nonisolated func selectForProcessing(limit: Int? = nil, completion: @escaping SyncStatusesCompletionBlock) {
|
||||
|
||||
Task { @MainActor in
|
||||
|
||||
Reference in New Issue
Block a user