Skip to content

Commit 524fd4b

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent e284ff5 commit 524fd4b

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

Sources/ConcurrencyExtras/AsyncStream.swift

+9-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ extension AsyncStream {
7171
}
7272
}
7373

74-
@available(*, deprecated, message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first.")
74+
@available(
75+
*, deprecated,
76+
message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first."
77+
)
7578
@_disfavoredOverload
7679
public init<S: AsyncSequence>(_ sequence: S) where S.Element == Element {
7780
self.init(UncheckedSendable(sequence))
@@ -101,7 +104,11 @@ extension AsyncSequence {
101104
AsyncStream(self)
102105
}
103106

104-
@available(*, deprecated, message: "Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to stream.")
107+
@available(
108+
*, deprecated,
109+
message:
110+
"Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to stream."
111+
)
105112
public func eraseToStream() -> AsyncStream<Element> {
106113
AsyncStream(UncheckedSendable(self))
107114
}

Sources/ConcurrencyExtras/AsyncThrowingStream.swift

+9-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ extension AsyncThrowingStream where Failure == Error {
2626
}
2727
}
2828

29-
@available(*, deprecated, message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first.")
29+
@available(
30+
*, deprecated,
31+
message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first."
32+
)
3033
@_disfavoredOverload
3134
public init<S: AsyncSequence>(_ sequence: S) where S.Element == Element {
3235
self.init(UncheckedSendable(sequence))
@@ -60,7 +63,11 @@ extension AsyncSequence {
6063
AsyncThrowingStream(self)
6164
}
6265

63-
@available(*, deprecated, message: "Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to throwing stream.")
66+
@available(
67+
*, deprecated,
68+
message:
69+
"Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to throwing stream."
70+
)
6471
public func eraseToThrowingStream() -> AsyncThrowingStream<Element, Error> {
6572
AsyncThrowingStream(UncheckedSendable(self))
6673
}

0 commit comments

Comments
 (0)