Fix concurrency warning.
This commit is contained in:
parent
ee466170c8
commit
dac3ff01b3
@ -917,7 +917,7 @@ public protocol CloudKitZone: AnyObject {
|
||||
var recordToSaveChunks = recordsToSave.chunked(into: 200)
|
||||
var recordIDsToDeleteChunks = recordIDsToDelete.chunked(into: 200)
|
||||
|
||||
func saveChunks(completion: @escaping (Result<Void, Error>) -> Void) {
|
||||
@MainActor func saveChunks(completion: @escaping (Result<Void, Error>) -> Void) {
|
||||
if !recordToSaveChunks.isEmpty {
|
||||
let records = recordToSaveChunks.removeFirst()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user