Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and github-actions[bot] committed Oct 14, 2024
1 parent e284ff5 commit 524fd4b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions Sources/ConcurrencyExtras/AsyncStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ extension AsyncStream {
}
}

@available(*, deprecated, message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first.")
@available(
*, deprecated,
message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first."
)
@_disfavoredOverload
public init<S: AsyncSequence>(_ sequence: S) where S.Element == Element {
self.init(UncheckedSendable(sequence))
Expand Down Expand Up @@ -101,7 +104,11 @@ extension AsyncSequence {
AsyncStream(self)
}

@available(*, deprecated, message: "Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to stream.")
@available(
*, deprecated,
message:
"Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to stream."
)
public func eraseToStream() -> AsyncStream<Element> {
AsyncStream(UncheckedSendable(self))
}
Expand Down
11 changes: 9 additions & 2 deletions Sources/ConcurrencyExtras/AsyncThrowingStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ extension AsyncThrowingStream where Failure == Error {
}
}

@available(*, deprecated, message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first.")
@available(
*, deprecated,
message: "Explicitly wrap the given async sequence with 'UncheckedSendable' first."
)
@_disfavoredOverload
public init<S: AsyncSequence>(_ sequence: S) where S.Element == Element {
self.init(UncheckedSendable(sequence))
Expand Down Expand Up @@ -60,7 +63,11 @@ extension AsyncSequence {
AsyncThrowingStream(self)
}

@available(*, deprecated, message: "Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to throwing stream.")
@available(
*, deprecated,
message:
"Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to throwing stream."
)
public func eraseToThrowingStream() -> AsyncThrowingStream<Element, Error> {
AsyncThrowingStream(UncheckedSendable(self))
}
Expand Down

0 comments on commit 524fd4b

Please sign in to comment.