mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-09-10 11:52:00 +02:00
cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user