var projectedValue: Protected<T> { get }
s25PackageConcurrencyHelpers9ProtectedC14projectedValueACyxGvp
9E547
import PackageConcurrencyHelpers
@propertyWrapper final class Protected<T>
Thread safe access to simple variable protected by lock
init(wrappedValue: T)
var wrappedValue: T { get set }
func read<V>(_ body: (T) throws -> V) rethrows -> V
Provides thread-safe scoped access to protected value
func write<V>(_ body: (inout T) throws -> V) rethrows -> V
Provides thread-safe scoped mutable access to protected value