Skip to content

Commit 375a973

Browse files
committed
chore: Run swift-format
1 parent 671380d commit 375a973

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let package = Package(
88
.library(
99
name: "DispatchAsync",
1010
targets: ["DispatchAsync"]
11-
),
11+
)
1212
],
1313
targets: [
1414
.target(

Sources/DispatchAsync/DispatchQueue.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ extension DispatchAsync {
149149

150150
/// Enqueue a new unit of work.
151151
@discardableResult
152-
nonisolated
153-
func enqueue(_ workItem: @escaping WorkItem) -> AsyncStream<WorkItem>.Continuation.YieldResult {
152+
nonisolated func enqueue(_ workItem: @escaping WorkItem) -> AsyncStream<WorkItem>.Continuation.YieldResult {
154153
// Never suspends, preserves order
155154
continuation.yield(workItem)
156155
}

Sources/DispatchAsync/DispatchSemaphore.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ extension DispatchAsync {
4848
#endif
4949
@available(
5050
*,
51-
deprecated,
52-
renamed: "AsyncSemaphore",
53-
message: "DispatchSemaphore.wait is dangerous because of it's thread-blocking nature. Use AsyncSemaphore and Swift Concurrency instead."
51+
deprecated,
52+
renamed: "AsyncSemaphore",
53+
message:
54+
"DispatchSemaphore.wait is dangerous because of it's thread-blocking nature. Use AsyncSemaphore and Swift Concurrency instead."
5455
)
5556
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
5657
public class DispatchSemaphore: @unchecked Sendable {

Tests/DispatchAsyncTests/DispatchGroupTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Testing
16-
1715
@_spi(DispatchAsync) import DispatchAsync
16+
import Testing
1817

1918
private typealias DispatchGroup = DispatchAsync.DispatchGroup
2019

Tests/DispatchAsyncTests/DispatchQueueTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Testing
16-
1715
@_spi(DispatchAsync) import DispatchAsync
16+
import Testing
1817

1918
private typealias DispatchQueue = DispatchAsync.DispatchQueue
2019

Tests/DispatchAsyncTests/DispatchTimeTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Testing
16-
1715
@_spi(DispatchAsync) import DispatchAsync
16+
import Testing
1817

1918
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
2019
private typealias DispatchTime = DispatchAsync.DispatchTime

0 commit comments

Comments
 (0)