Skip to content

Commit 7e7ae4a

Browse files
authored
Add equatable conformance when value is equatable (#1565)
1 parent 658ecbb commit 7e7ae4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,9 @@ public struct UncheckedSendable<Value>: @unchecked Sendable {
395395
_modify { yield &self.value[keyPath: keyPath] }
396396
}
397397
}
398+
399+
extension UncheckedSendable: Equatable where Value: Equatable {
400+
public static func == (lhs: UncheckedSendable, rhs: UncheckedSendable) -> Bool {
401+
lhs.value == rhs.value
402+
}
403+
}

0 commit comments

Comments
 (0)