From 6a25b3538e2afaff413a4b0db2e6e14abb065415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 10 Sep 2025 07:41:42 +0200 Subject: [PATCH] DocC for GRDBSendableMetatype --- GRDB/Documentation.docc/SwiftConcurrency.md | 6 ++++++ GRDB/Utils/Utils.swift | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/GRDB/Documentation.docc/SwiftConcurrency.md b/GRDB/Documentation.docc/SwiftConcurrency.md index 4fcfc15fa..35ce83c57 100644 --- a/GRDB/Documentation.docc/SwiftConcurrency.md +++ b/GRDB/Documentation.docc/SwiftConcurrency.md @@ -229,5 +229,11 @@ Task { } ``` +## Topics + +### Supporting Types + +- ``GRDBSendableMetatype`` + [demo apps]: https://github.com/groue/GRDB.swift/tree/master/Documentation/DemoApps [Migrating to Swift 6]: https://www.swift.org/migration/documentation/migrationguide/ diff --git a/GRDB/Utils/Utils.swift b/GRDB/Utils/Utils.swift index dd7ce059f..47bb3a16c 100644 --- a/GRDB/Utils/Utils.swift +++ b/GRDB/Utils/Utils.swift @@ -24,10 +24,12 @@ public func databaseQuestionMarks(count: Int) -> String { } #if compiler(>=6.2) -/// A synonym for `SendableMetatype` in Swift 6.2, and `Any` otherwise. +/// A synonym for the standard `SendableMetatype` protocol in Swift 6.2, +/// and `Any` in previous compiler versions. public typealias GRDBSendableMetatype = SendableMetatype #else -/// A synonym for `SendableMetatype` in Swift 6.2, and `Any` otherwise. +/// A synonym for the standard `SendableMetatype` protocol in Swift 6.2, +/// and `Any` in previous compiler versions. public typealias GRDBSendableMetatype = Any #endif