feat: wip

This commit is contained in:
2024-06-17 11:46:42 -04:00
parent cf4c00d9d5
commit fd3d33878a
7 changed files with 35 additions and 26 deletions

View File

@@ -10,7 +10,7 @@ import TCAExtras
@Reducer
public struct CalculateAtFeature: Sendable {
@Reducer(state: .equatable)
@Reducer(state: .equatable, .sendable)
public enum Destination {
case infoView(InfoViewFeature)
}
@@ -39,16 +39,16 @@ public struct CalculateAtFeature: Sendable {
&& values.targetValue != nil
}
public subscript<T>(dynamicMember keyPath: KeyPath<CalculationType, T>) -> T {
public subscript<T: Sendable>(dynamicMember keyPath: KeyPath<CalculationType, T>) -> T {
calculationType[keyPath: keyPath]
}
public subscript<T>(dynamicMember keyPath: WritableKeyPath<ValueContainer, T>) -> T {
public subscript<T: Sendable>(dynamicMember keyPath: WritableKeyPath<ValueContainer, T>) -> T {
get { values[keyPath: keyPath] }
set { values[keyPath: keyPath] = newValue }
}
public enum Focus: Hashable {
public enum Focus: Hashable, Sendable {
case existingAirflow
case existingPressure
case targetValue