mask ObjectSnapshot as Sendable

This commit is contained in:
John Estropia
2023-01-31 16:44:33 +09:00
parent f7c3e42009
commit a682f90aff

View File

@@ -40,7 +40,7 @@ import AppKit
The `ObjectSnapshot` is a full copy of a `DynamicObject`'s properties at a given point in time. This is useful especially when keeping thread-safe state values, in ViewModels for example. Since this is a value type, any changes in this `struct` does not affect the actual object.
*/
@dynamicMemberLookup
public struct ObjectSnapshot<O: DynamicObject>: ObjectRepresentation, Hashable {
public struct ObjectSnapshot<O: DynamicObject>: ObjectRepresentation, Hashable, Sendable {
// MARK: Public