Skip to content

Conversation

@ktoso
Copy link
Contributor

@ktoso ktoso commented Apr 24, 2025

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

@ktoso ktoso requested a review from a team as a code owner April 24, 2025 04:21
@ktoso
Copy link
Contributor Author

ktoso commented Apr 24, 2025

@swift-ci please test

@ktoso
Copy link
Contributor Author

ktoso commented Apr 24, 2025

@swift-ci please test macOS

@ktoso
Copy link
Contributor Author

ktoso commented Apr 24, 2025

@swift-ci please test source compatibility

@ktoso
Copy link
Contributor Author

ktoso commented Apr 24, 2025

@swift-ci please test macOS

2 similar comments
@ktoso
Copy link
Contributor Author

ktoso commented Apr 24, 2025

@swift-ci please test macOS

@ktoso
Copy link
Contributor Author

ktoso commented Apr 24, 2025

@swift-ci please test macOS

Copy link
Member

@DougGregor DougGregor left a 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


@available(SwiftStdlib 6.2, *)
extension AsyncStream.Continuation: Hashable {
@available(SwiftStdlib 6.2, *)
Copy link
Member

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?

Copy link
Contributor Author

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here

@DougGregor DougGregor merged commit cbcaf5e into swiftlang:release/6.2 Apr 25, 2025
7 checks passed
@ktoso ktoso deleted the pick-hashable-continuation branch April 30, 2025 05:11
ktoso added a commit that referenced this pull request Apr 30, 2025
…#81127)

Small review followup for #81064

The impls should be @inlinable.

Original PR: #81126
Radar: rdar://149914179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants