This commit is contained in:
John Estropia
2026-07-24 11:51:36 +09:00
parent 1ea9ad7c4a
commit 13093d72d4
51 changed files with 1083 additions and 243 deletions
+3 -3
View File
@@ -41,7 +41,7 @@ extension DataStack {
public func perform<T: Sendable>(
asynchronous task: @escaping @Sendable (
_ transaction: AsynchronousDataTransaction
) throws(any Swift.Error) -> T,
) throws(any Swift::Error) -> T,
sourceIdentifier: (any Sendable)? = nil,
completion: @escaping @MainActor @Sendable (AsynchronousDataTransaction.Result<T>) -> Void
) {
@@ -65,7 +65,7 @@ extension DataStack {
public func perform<T>(
asynchronous task: @escaping @Sendable (
_ transaction: AsynchronousDataTransaction
) throws(any Swift.Error) -> T,
) throws(any Swift::Error) -> T,
sourceIdentifier: (any Sendable)? = nil,
success: @escaping @MainActor @Sendable (sending T) -> Void,
failure: @escaping @MainActor @Sendable (CoreStoreError) -> Void
@@ -123,7 +123,7 @@ extension DataStack {
public func perform<T>(
synchronous task: (
_ transaction: SynchronousDataTransaction
) throws(any Swift.Error) -> T,
) throws(any Swift::Error) -> T,
waitForAllObservers: Bool = true,
sourceIdentifier: (any Sendable)? = nil
) throws(CoreStoreError) -> T {