File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616
1717import CDispatch
1818
19- public struct DispatchTime : Comparable {
19+ public struct DispatchTime : Comparable , Sendable {
2020#if HAVE_MACH
2121 private static let timebaseInfo : mach_timebase_info_data_t = {
2222 var info = mach_timebase_info_data_t ( numer: 1 , denom: 1 )
@@ -96,7 +96,7 @@ extension DispatchTime {
9696 }
9797}
9898
99- public struct DispatchWallTime : Comparable {
99+ public struct DispatchWallTime : Comparable , Sendable {
100100 public let rawValue : dispatch_time_t
101101
102102 public static func now( ) -> DispatchWallTime {
@@ -165,7 +165,7 @@ private func toInt64Clamped(_ value: Double) -> Int64 {
165165/// let t1 = DispatchTimeInterval.seconds(Int.max)
166166/// let t2 = DispatchTimeInterval.milliseconds(Int.max)
167167/// let result = t1 == t2 // true
168- public enum DispatchTimeInterval : Equatable {
168+ public enum DispatchTimeInterval : Equatable , Sendable {
169169 case seconds( Int )
170170 case milliseconds( Int )
171171 case microseconds( Int )
You can’t perform that action at this time.
0 commit comments