diff --git a/src/swift/Time.swift b/src/swift/Time.swift index e1f2efc7d..bc93d5e72 100644 --- a/src/swift/Time.swift +++ b/src/swift/Time.swift @@ -16,7 +16,7 @@ import CDispatch -public struct DispatchTime : Comparable { +public struct DispatchTime : Comparable, Sendable { #if HAVE_MACH private static let timebaseInfo: mach_timebase_info_data_t = { var info = mach_timebase_info_data_t(numer: 1, denom: 1) @@ -96,7 +96,7 @@ extension DispatchTime { } } -public struct DispatchWallTime : Comparable { +public struct DispatchWallTime : Comparable, Sendable { public let rawValue: dispatch_time_t public static func now() -> DispatchWallTime { @@ -165,7 +165,7 @@ private func toInt64Clamped(_ value: Double) -> Int64 { /// let t1 = DispatchTimeInterval.seconds(Int.max) /// let t2 = DispatchTimeInterval.milliseconds(Int.max) /// let result = t1 == t2 // true -public enum DispatchTimeInterval: Equatable { +public enum DispatchTimeInterval: Equatable, Sendable { case seconds(Int) case milliseconds(Int) case microseconds(Int)