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
enum PauseReason: Codable, Sendable, Equatable, Hashable {
enum PauseReason: nonisolated Codable, nonisolated Sendable, nonisolated Equatable, nonisolated Hashable {
case manual
case fullscreen
case idle
@@ -38,3 +38,4 @@ enum PauseReason: Codable, Sendable, Equatable, Hashable {
}
}
}

View File

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

View File

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