mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
[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:
1 parent
c122872734
commit
b3ac63b0cd
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user