diff --git a/GRDB/ValueObservation/ValueObservation.swift b/GRDB/ValueObservation/ValueObservation.swift index 79eea431db..c7b2414bd3 100644 --- a/GRDB/ValueObservation/ValueObservation.swift +++ b/GRDB/ValueObservation/ValueObservation.swift @@ -384,11 +384,13 @@ extension ValueObservation { /// /// You build an `AsyncValueObservation` from ``ValueObservation`` or /// ``SharedValueObservation``. -public struct AsyncValueObservation: AsyncSequence { +public struct AsyncValueObservation: AsyncSequence, Sendable { public typealias BufferingPolicy = AsyncThrowingStream.Continuation.BufferingPolicy public typealias AsyncIterator = Iterator - var bufferingPolicy: BufferingPolicy + // AsyncThrowingStream.Continuation.BufferingPolicy is obviously + // Sendable, but lacks Sendable conformance. + nonisolated(unsafe) var bufferingPolicy: BufferingPolicy var start: ValueObservationStart public func makeAsyncIterator() -> Iterator {