Skip to content

Commit

Permalink
Removing trailing whitespaces [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaland committed Jan 9, 2024
1 parent 5cfcce1 commit 01835f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Amplify/Core/Support/TaskQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
/// A helper for executing asynchronous work serially.
public actor TaskQueue<Success, Failure> where Failure: Error {
private var previousTask: Task<Success, Failure>?

public init() {}
}

Expand All @@ -34,7 +34,7 @@ public extension TaskQueue where Failure == any Error {
previousTask = currentTask
return try await currentTask.value
}

nonisolated func async(block: @Sendable @escaping () async throws -> Success) rethrows {
Task {
try await sync(block: block)
Expand Down Expand Up @@ -62,7 +62,7 @@ public extension TaskQueue where Failure == Never {
previousTask = currentTask
return await currentTask.value
}

nonisolated func async(block: @Sendable @escaping () async -> Success) {
Task {
await sync(block: block)
Expand Down

0 comments on commit 01835f5

Please sign in to comment.