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
+9 -9
View File
@@ -85,7 +85,7 @@ extension DataStack.AsyncNamespace {
*/
public func addStorage<T: StorageInterface>(
_ storage: T
) async throws(any Swift.Error) -> T {
) async throws(any Swift::Error) -> T {
return try await Internals.withCheckedThrowingContinuation { continuation in
@@ -118,7 +118,7 @@ extension DataStack.AsyncNamespace {
*/
public func addStorage<T>(
_ storage: T
) -> AsyncThrowingStream<MigrationProgress<T>, any Swift.Error> {
) -> AsyncThrowingStream<MigrationProgress<T>, any Swift::Error> {
return .init(
bufferingPolicy: .unbounded,
@@ -184,7 +184,7 @@ extension DataStack.AsyncNamespace {
public func importObject<O: DynamicObject & ImportableObject>(
_ into: Into<O>,
source: O.ImportSource
) async throws(any Swift.Error) -> O? {
) async throws(any Swift::Error) -> O? {
return try await Internals.withCheckedThrowingContinuation { continuation in
@@ -226,7 +226,7 @@ extension DataStack.AsyncNamespace {
public func importObject<O: DynamicObject & ImportableObject>(
_ object: O,
source: O.ImportSource
) async throws(any Swift.Error) -> O? {
) async throws(any Swift::Error) -> O? {
nonisolated(unsafe) let object = object
return try await Internals.withCheckedThrowingContinuation { continuation in
@@ -274,7 +274,7 @@ extension DataStack.AsyncNamespace {
public func importUniqueObject<O: DynamicObject & ImportableUniqueObject>(
_ into: Into<O>,
source: O.ImportSource
) async throws(any Swift.Error) -> O? {
) async throws(any Swift::Error) -> O? {
return try await Internals.withCheckedThrowingContinuation { continuation in
@@ -324,8 +324,8 @@ extension DataStack.AsyncNamespace {
sourceArray: S,
preProcess: @escaping @Sendable (
_ mapping: [O.UniqueIDType: O.ImportSource]
) throws(any Swift.Error) -> [O.UniqueIDType: O.ImportSource] = { $0 }
) async throws(any Swift.Error) -> [O]
) throws(any Swift::Error) -> [O.UniqueIDType: O.ImportSource] = { $0 }
) async throws(any Swift::Error) -> [O]
where S.Iterator.Element == O.ImportSource {
return try await Internals.withCheckedThrowingContinuation { continuation in
@@ -374,8 +374,8 @@ extension DataStack.AsyncNamespace {
- throws: A `CoreStoreError` value indicating the failure reason
*/
public func perform<Output: Sendable>(
_ asynchronous: @escaping @Sendable (AsynchronousDataTransaction) throws(any Swift.Error) -> Output
) async throws(any Swift.Error) -> Output {
_ asynchronous: @escaping @Sendable (AsynchronousDataTransaction) throws(any Swift::Error) -> Output
) async throws(any Swift::Error) -> Output {
return try await Internals.withCheckedThrowingContinuation { continuation in