This commit is contained in:
John Estropia
2026-07-15 11:50:43 +09:00
parent 7db1cfecfb
commit 890e150b95
135 changed files with 2895 additions and 2526 deletions
@@ -52,6 +52,27 @@ extension Internals {
using: closure
)
}
init(
notificationName: Notification.Name,
object: Any?,
closure: @escaping @MainActor (_ note: Notification) -> Void
) {
self.observer = NotificationCenter.default.addObserver(
forName: notificationName,
object: object,
queue: .main,
using: { note in
nonisolated(unsafe) let note = note
MainActor.assumeIsolated {
closure(note)
}
}
)
}
deinit {