Skip to content

Commit

Permalink
Update AsyncStream.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored Oct 14, 2024
1 parent dd48330 commit 73abf7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ConcurrencyExtras/AsyncStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extension AsyncStream {
}
}

@available(*, deprecated, message: "Explicitly wrap given sequence in 'UncheckedSendable'.")
@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 +101,7 @@ extension AsyncSequence {
AsyncStream(self)
}

@available(*, deprecated, message: "Explicitly wrap this sequence in '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

0 comments on commit 73abf7c

Please sign in to comment.