Convert markArticles to async await.

This commit is contained in:
Brent Simmons
2024-03-26 18:48:44 -07:00
parent bf58443fe1
commit 402ee970cc
11 changed files with 105 additions and 23 deletions

View File

@@ -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?()
}