mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Convert to async/await
This commit is contained in:
1 parent
b681dea6fa
commit
24a2e68fb5
32 files changed
+945
-961
No files matched your search
@@ -1112,7 +1112,7 @@ extension MainFeedCollectionViewController {
|
||||
MarkAsReadAlertController.confirm(self, coordinator: self?.coordinator, confirmTitle: title, sourceType: contentView) { [weak self] in
|
||||
// If you don't have this delay the screen flashes when it executes this code
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||
if let articles = try? account.fetchArticles(.unread()) {
|
||||
if let articles = try? account.fetchArticlesSync(.unread()) {
|
||||
self?.coordinator.markAllAsRead(Array(articles))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user