Send statuses, after a mark-articles, in the background so the thread doesn’t wait on the sync call.

This commit is contained in:
Brent Simmons committed 2026-11-26 10:28:30 -08:00
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() }
}
}