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

@@ -2,13 +2,14 @@ import Foundation
import Synchronization
import Observation
import Brief
import Backports
@Observable class PreviewUpdater: UpdaterProtocol {
var update: Release? {
_update.withLock { $0 }
}
let _update: Mutex<Release?> = .init(nil)
let _update: _Mutex<Release?> = .init(nil)
let testBuild = false