diff --git a/GRDB/Utils/ReadWriteBox.swift b/GRDB/Utils/ReadWriteBox.swift index 1037ef8b3..2c0cd88f8 100644 --- a/GRDB/Utils/ReadWriteBox.swift +++ b/GRDB/Utils/ReadWriteBox.swift @@ -3,7 +3,8 @@ import Dispatch /// A ReadWriteBox grants multiple readers and single-writer guarantees on a /// value. It is backed by a concurrent DispatchQueue. @propertyWrapper -final class ReadWriteBox { +final class ReadWriteBox: @unchecked Sendable { + // @unchecked because `_wrappedValue` is protected by `queue` private var _wrappedValue: T private var queue: DispatchQueue