From dac3ff01b3e85ce5cfbd4a11fc8623a7a7a836a2 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 19 Apr 2024 22:20:36 -0700 Subject: [PATCH] Fix concurrency warning. --- CloudKitExtras/Sources/CloudKitExtras/CloudKitZone.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CloudKitExtras/Sources/CloudKitExtras/CloudKitZone.swift b/CloudKitExtras/Sources/CloudKitExtras/CloudKitZone.swift index 3a2329a13..8de2f22ef 100644 --- a/CloudKitExtras/Sources/CloudKitExtras/CloudKitZone.swift +++ b/CloudKitExtras/Sources/CloudKitExtras/CloudKitZone.swift @@ -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) { + @MainActor func saveChunks(completion: @escaping (Result) -> Void) { if !recordToSaveChunks.isEmpty { let records = recordToSaveChunks.removeFirst()