Backport mutex

This commit is contained in:
Max Goedjen
2025-01-05 16:25:16 -08:00
parent 576e625b8f
commit 9b02afb20c
9 changed files with 60 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ import SecretKit
import SecretAgentKit
import Brief
import Synchronization
import Backports
final class Notifier: Sendable {
@@ -151,7 +152,7 @@ final class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Se
fileprivate var pendingPersistableSecrets: [String: AnySecret] = [:]
}
fileprivate let state: Mutex<State> = .init(.init())
fileprivate let state: _Mutex<State> = .init(.init())
func userNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification?) {