mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-12-01 12:43:59 +01:00
mark sendable closures
This commit is contained in:
1 parent
2559375491
commit
f7c3e42009
1 file changed
+2
-2
@@ -306,7 +306,7 @@ extension DataStack.AsyncNamespace {
|
|||||||
public func importUniqueObjects<O: DynamicObject & ImportableUniqueObject, S: Sequence>(
|
public func importUniqueObjects<O: DynamicObject & ImportableUniqueObject, S: Sequence>(
|
||||||
_ into: Into<O>,
|
_ into: Into<O>,
|
||||||
sourceArray: S,
|
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]
|
) async throws -> [O]
|
||||||
where S.Iterator.Element == O.ImportSource {
|
where S.Iterator.Element == O.ImportSource {
|
||||||
|
|
||||||
@@ -353,7 +353,7 @@ extension DataStack.AsyncNamespace {
|
|||||||
- throws: A `CoreStoreError` value indicating the failure reason
|
- throws: A `CoreStoreError` value indicating the failure reason
|
||||||
*/
|
*/
|
||||||
public func perform<Output>(
|
public func perform<Output>(
|
||||||
_ asynchronous: @escaping (AsynchronousDataTransaction) throws -> Output
|
_ asynchronous: @escaping @Sendable (AsynchronousDataTransaction) throws -> Output
|
||||||
) async throws -> Output {
|
) async throws -> Output {
|
||||||
|
|
||||||
return try await withCheckedThrowingContinuation { continuation in
|
return try await withCheckedThrowingContinuation { continuation in
|
||||||
|
|||||||
Reference in new issue
Block a user