Fix numerous concurrency warnings.

This commit is contained in:
Brent Simmons
2024-04-07 21:32:47 -07:00
parent 4b0e7addc9
commit d1dc4cceec
15 changed files with 98 additions and 74 deletions

View File

@@ -11,10 +11,9 @@ import Account
import Articles
import UserNotifications
final class UserNotificationManager: NSObject {
override init() {
super.init()
final class UserNotificationManager: Sendable {
init() {
NotificationCenter.default.addObserver(self, selector: #selector(accountDidDownloadArticles(_:)), name: .AccountDidDownloadArticles, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(statusesDidChange(_:)), name: .StatusesDidChange, object: nil)
registerCategoriesAndActions()
@@ -103,5 +102,4 @@ private extension UserNotificationManager {
UNUserNotificationCenter.current().setNotificationCategories([newArticleCategory])
}
}