mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Convert markArticles to async await.
This commit is contained in:
@@ -23,11 +23,12 @@ import Account
|
||||
continue
|
||||
}
|
||||
group.enter()
|
||||
account.markArticles(accountArticles, statusKey: statusKey, flag: flag) { _ in
|
||||
Task { @MainActor in
|
||||
try? await account.markArticles(accountArticles, statusKey: statusKey, flag: flag)
|
||||
group.leave()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
group.notify(queue: .main) {
|
||||
completion?()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user