From ef36727d9ad4496747657faee00f6d96c45f269b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Rou=C3=A9?= Date: Wed, 5 Feb 2025 13:38:19 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=B5=20Whatever=20Lola=20wants,=20Lola?= =?UTF-8?q?=20gets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address https://github.com/RxSwiftCommunity/RxGRDB/issues/72 Based on https://github.com/swiftlang/swift-evolution/blob/main/proposals/0337-support-incremental-migration-to-concurrency-checking.md#preconcurrency-attribute-on-nominal-declarations See also https://www.massicotte.org/preconcurrency#working-with-swift-5 "Whatever Lola wants, Lola gets" because the Swift language is a blind and cruel mistress. --- GRDB/Core/DatabaseRegionObservation.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/GRDB/Core/DatabaseRegionObservation.swift b/GRDB/Core/DatabaseRegionObservation.swift index 8d9cd97b0..ec6319721 100644 --- a/GRDB/Core/DatabaseRegionObservation.swift +++ b/GRDB/Core/DatabaseRegionObservation.swift @@ -83,6 +83,7 @@ extension DatabaseRegionObservation { /// - parameter onChange: The closure to execute when a transaction has /// modified the observed region. /// - returns: A DatabaseCancellable that can stop the observation. + @preconcurrency // For RxGRDB, see public func start( in writer: any DatabaseWriter, onError: @escaping @Sendable (Error) -> Void,