-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[6.2][Concurrency] Add Hashable conformance to Async(Throwing)Stream.Continuation #81064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.2][Concurrency] Add Hashable conformance to Async(Throwing)Stream.Continuation #81064
Conversation
To fix failing test/api-digester/stability-concurrency-abi.test
@swift-ci please test |
@swift-ci please test macOS |
@swift-ci please test source compatibility |
@swift-ci please test macOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we can do the @inlinable bit in a follow-up
@@ -475,6 +475,22 @@ extension AsyncStream: @unchecked Sendable where Element: Sendable { } | |||
@available(SwiftStdlib 5.1, *) | |||
extension AsyncStream.Continuation.YieldResult: Sendable where Element: Sendable { } | |||
|
|||
@available(SwiftStdlib 6.2, *) | |||
extension AsyncStream.Continuation: Hashable { | |||
@available(SwiftStdlib 6.2, *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these all be @inlinable
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@available(SwiftStdlib 6.2, *) | ||
extension AsyncThrowingStream.Continuation: Hashable { | ||
@available(SwiftStdlib 6.2, *) | ||
public func hash(into hasher: inout Hasher) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here
Description: Adds hashable conformance and was approved in SE over here https://forums.swift.org/t/accepted-se-0468-hashable-conformance-for-async-throwing-stream-continuation/79116
Scope/Impact: Adds a Hashable conformance to AsyncStream.Continuation
Risk: Low, adding a conformance
Testing: CI testing
Reviewed by: @ktoso // PR on behalf of @nickolas-pohilets
Original PR: https://github.com/swiftlang/swift/pull/79457/files
Radar: rdar://149914179