feat: Resolving concurrency warnings

This commit is contained in:
2024-06-11 10:34:19 -04:00
parent e07df0e426
commit bf2e65fb8f
15 changed files with 156 additions and 130 deletions

View File

@@ -19,7 +19,7 @@ public struct Flagged: Equatable, Sendable {
public init(
wrappedValue: Double,
_ checkValue: @escaping (Double) -> CheckResult
_ checkValue: @escaping @Sendable (Double) -> CheckResult
) {
self.checkValue = .init(checkValue)
self.wrappedValue = wrappedValue
@@ -35,10 +35,10 @@ public struct Flagged: Equatable, Sendable {
checkValue(wrappedValue)
}
public struct GoodMessageHandler {
let message: (Double) -> String?
public init(message: @escaping (Double) -> String?) {
public struct GoodMessageHandler: Sendable {
let message: @Sendable (Double) -> String?
public init(message: @escaping @Sendable (Double) -> String?) {
self.message = message
}