Skip to content

Commit

Permalink
mark sendable closures
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnEstropia committed Jan 31, 2023
1 parent 2559375 commit f7c3e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/DataStack+Concurrency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ extension DataStack.AsyncNamespace {
public func importUniqueObjects<O: DynamicObject & ImportableUniqueObject, S: Sequence>(
_ into: Into<O>,
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 {

Expand Down Expand Up @@ -353,7 +353,7 @@ extension DataStack.AsyncNamespace {
- throws: A `CoreStoreError` value indicating the failure reason
*/
public func perform<Output>(
_ asynchronous: @escaping (AsynchronousDataTransaction) throws -> Output
_ asynchronous: @escaping @Sendable (AsynchronousDataTransaction) throws -> Output
) async throws -> Output {

return try await withCheckedThrowingContinuation { continuation in
Expand Down

0 comments on commit f7c3e42

Please sign in to comment.