From f7c3e42009a9cb88b188500d408cb3fd542f9fc4 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Tue, 31 Jan 2023 09:50:06 +0900 Subject: [PATCH] mark sendable closures --- Sources/DataStack+Concurrency.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/DataStack+Concurrency.swift b/Sources/DataStack+Concurrency.swift index 51150bc..84b494b 100644 --- a/Sources/DataStack+Concurrency.swift +++ b/Sources/DataStack+Concurrency.swift @@ -306,7 +306,7 @@ extension DataStack.AsyncNamespace { public func importUniqueObjects( _ into: Into, sourceArray: S, - preProcess: @escaping (_ mapping: [O.UniqueIDType: O.ImportSource]) throws -> [O.UniqueIDType: O.ImportSource] = { $0 } + preProcess: @escaping @Sendable (_ mapping: [O.UniqueIDType: O.ImportSource]) throws -> [O.UniqueIDType: O.ImportSource] = { $0 } ) async throws -> [O] where S.Iterator.Element == O.ImportSource { @@ -353,7 +353,7 @@ extension DataStack.AsyncNamespace { - throws: A `CoreStoreError` value indicating the failure reason */ public func perform( - _ asynchronous: @escaping (AsynchronousDataTransaction) throws -> Output + _ asynchronous: @escaping @Sendable (AsynchronousDataTransaction) throws -> Output ) async throws -> Output { return try await withCheckedThrowingContinuation { continuation in