[SENDING REGRET] DatabaseMigrator.asyncMigrate requires a Sendable closure

We should be able to use a sending closure instead, but DispatchQueue.async does not accept sending closures yet.
This commit is contained in:
Gwendal Roué committed 2024-09-08 16:09:40 +02:00
1 parent c122872734
commit b3ac63b0cd
1 file changed
+1 -1
+1 -1
View File
@@ -264,7 +264,7 @@ public struct DatabaseMigrator: Sendable {
/// from succeeding.
public func asyncMigrate(
_ writer: some DatabaseWriter,
completion: @escaping (Result<Database, Error>) -> Void)
completion: @escaping @Sendable (Result<Database, Error>) -> Void)
{
writer.asyncBarrierWriteWithoutTransaction { dbResult in
do {