mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-06 04:07:54 +00:00
Send statuses, after a mark-articles, in the background so the thread doesn’t wait on the sync call.
This commit is contained in:
1 parent
314aef5948
commit
f17ea72f3c
1 file changed
+3
-1
@@ -533,7 +533,9 @@ import Secrets
|
||||
NotificationCenter.default.post(name: .AccountDidQueueArticleStatuses, object: account)
|
||||
}
|
||||
if let count = try? await syncDatabase.selectPendingCount(), count > Self.sendStatusBatchThreshold {
|
||||
try await sendArticleStatus()
|
||||
// Flush in the background so marking doesn't block the caller
|
||||
// <https://github.com/Ranchero-Software/NetNewsWire/issues/5273>
|
||||
Task { try? await sendArticleStatus() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user