From e0cfb97796c330c86c73452a480fff7914e6a870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 10 Feb 2024 19:36:06 +0100 Subject: [PATCH] The global SQLite error log is nonisolated --- GRDB/Core/Database.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index 8297359d7..003873676 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -133,7 +133,7 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib /// The error logging function. /// /// Related SQLite documentation: - public static var logError: LogErrorFunction? = nil { + nonisolated(unsafe) public static var logError: LogErrorFunction? = nil { didSet { if logError != nil { _registerErrorLogCallback { (_, code, message) in @@ -1994,7 +1994,7 @@ extension Database { } /// An error log function that takes an error code and message. - public typealias LogErrorFunction = (_ resultCode: ResultCode, _ message: String) -> Void + public typealias LogErrorFunction = @Sendable (_ resultCode: ResultCode, _ message: String) -> Void /// An option for the SQLite tracing feature. ///