File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -477,9 +477,15 @@ extension AsyncStream.Continuation.YieldResult: Sendable where Element: Sendable
477
477
478
478
@available ( SwiftStdlib 9999 , * )
479
479
extension AsyncStream . Continuation : Hashable {
480
+ @available ( SwiftStdlib 9999 , * )
480
481
public func hash( into hasher: inout Hasher ) {
481
482
return hasher. combine ( ObjectIdentifier ( storage) )
482
483
}
484
+ @available ( SwiftStdlib 9999 , * )
485
+ public var hashValue : Int {
486
+ return _hashValue ( for: self )
487
+ }
488
+ @available ( SwiftStdlib 9999 , * )
483
489
public static func == ( lhs: Self , rhs: Self ) -> Bool {
484
490
return lhs. storage === rhs. storage
485
491
}
Original file line number Diff line number Diff line change @@ -523,9 +523,15 @@ extension AsyncThrowingStream.Continuation.YieldResult: Sendable where Element:
523
523
524
524
@available ( SwiftStdlib 9999 , * )
525
525
extension AsyncThrowingStream . Continuation : Hashable {
526
+ @available ( SwiftStdlib 9999 , * )
526
527
public func hash( into hasher: inout Hasher ) {
527
528
return hasher. combine ( ObjectIdentifier ( storage) )
528
529
}
530
+ @available ( SwiftStdlib 9999 , * )
531
+ public var hashValue : Int {
532
+ return _hashValue ( for: self )
533
+ }
534
+ @available ( SwiftStdlib 9999 , * )
529
535
public static func == ( lhs: Self , rhs: Self ) -> Bool {
530
536
return lhs. storage === rhs. storage
531
537
}
You can’t perform that action at this time.
0 commit comments