mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
StrictConcurrency: DatabasePromise initializer requires a Sendable value
This commit is contained in:
1 parent
88539df543
commit
5a2c15b82e
1 file changed
+1
-1
@@ -26,7 +26,7 @@ struct DatabasePromise<T> {
|
||||
let resolve: @Sendable (Database) throws -> T
|
||||
|
||||
/// Creates a promise that resolves to a value.
|
||||
init(value: T) {
|
||||
init(value: T) where T: Sendable {
|
||||
self.resolve = { _ in value }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user