StrictConcurrency: fix warning about AnyDatabaseCancellable initializer

This commit is contained in:
Gwendal Roué authored and Gwendal Roué committed 2024-07-27 16:37:33 +02:00
1 parent 484224c654
commit 8f486a5e41
1 file changed
+1 -1
@@ -36,7 +36,7 @@ public final class AnyDatabaseCancellable: DatabaseCancellable, @unchecked Senda
}
/// Creates a cancellable object that forwards cancellation to `base`.
public convenience init(_ base: some DatabaseCancellable) {
public convenience init(_ base: some DatabaseCancellable & Sendable) {
self.init {
base.cancel()
}