feat: Conforming types to Sendable

This commit is contained in:
2024-06-11 07:46:47 -04:00
parent 2e42f3a0e2
commit e07df0e426
11 changed files with 47 additions and 35 deletions

View File

@@ -12,12 +12,12 @@ extension DependencyValues {
}
@DependencyClient
public struct EstimatedPressureDependency {
public struct EstimatedPressureDependency: Sendable {
public var estimatedAirflow: (EstimatedAirflowRequest) async throws -> Positive<Double>
public var estimatedPressure: (EstimatedPressureRequest) async throws -> Positive<Double>
public var estimatedAirflow: @Sendable (EstimatedAirflowRequest) async throws -> Positive<Double>
public var estimatedPressure: @Sendable (EstimatedPressureRequest) async throws -> Positive<Double>
public struct EstimatedPressureRequest: Equatable {
public struct EstimatedPressureRequest: Equatable, Sendable {
public let existingPressure: Positive<Double>
public let existingAirflow: Positive<Double>
public let targetAirflow: Positive<Double>
@@ -33,7 +33,7 @@ public struct EstimatedPressureDependency {
}
}
public struct EstimatedAirflowRequest: Equatable {
public struct EstimatedAirflowRequest: Equatable, Sendable {
public let existingAirflow: Positive<Double>
public let existingPressure: Positive<Double>
public let targetPressure: Positive<Double>