fix one
This commit is contained in:
@@ -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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user