This commit is contained in:
Michael Freno
2026-01-30 11:50:41 -05:00
parent 7a23ae9bad
commit 0b6dd3f903
3 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
import Foundation import Foundation
enum PauseReason: Codable, Sendable, Equatable, Hashable { enum PauseReason: nonisolated Codable, nonisolated Sendable, nonisolated Equatable, nonisolated Hashable {
case manual case manual
case fullscreen case fullscreen
case idle case idle
@@ -38,3 +38,4 @@ enum PauseReason: Codable, Sendable, Equatable, Hashable {
} }
} }
} }

View File

@@ -8,7 +8,7 @@
import Foundation import Foundation
/// Unified identifier for both built-in and user-defined timers /// Unified identifier for both built-in and user-defined timers
enum TimerIdentifier: Hashable, Codable { enum TimerIdentifier: Hashable, Codable, Sendable {
case builtIn(TimerType) case builtIn(TimerType)
case user(id: String) case user(id: String)

View File

@@ -7,7 +7,7 @@
import Foundation import Foundation
struct TimerState: Equatable, Hashable { struct TimerState: Equatable, Hashable, Sendable {
let identifier: TimerIdentifier let identifier: TimerIdentifier
var remainingSeconds: Int var remainingSeconds: Int
var isPaused: Bool var isPaused: Bool
@@ -45,7 +45,7 @@ struct TimerState: Equatable, Hashable {
} }
} }
enum TimerStateBuilder { enum TimerStateBuilder: Sendable {
static func make( static func make(
identifier: TimerIdentifier, identifier: TimerIdentifier,
intervalSeconds: Int, intervalSeconds: Int,