Skip to content

Commit 4baef05

Browse files
maxgoedjenp4checo
authored andcommitted
Add equatable conformance when value is equatable (#1565)
(cherry picked from commit 7e7ae4aa099777fd8d5a4398d55d628fe2f9ccc5) # Conflicts: # Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift
1 parent aa7d88c commit 4baef05

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
@@ -396,4 +396,10 @@ public struct UncheckedSendable<Value>: @unchecked Sendable {
396396
_modify { yield &self.value[keyPath: keyPath] }
397397
}
398398
}
399+
400+
extension UncheckedSendable: Equatable where Value: Equatable {
401+
public static func == (lhs: UncheckedSendable, rhs: UncheckedSendable) -> Bool {
402+
lhs.value == rhs.value
403+
}
404+
}
399405
#endif

0 commit comments

Comments
 (0)