StrictConcurrency: DatabasePromise initializer requires a Sendable value

This commit is contained in:
Gwendal Roué committed 2024-07-27 16:37:33 +02:00
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 }
}