File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import CDispatch
18
18
19
- public struct DispatchTime : Comparable {
19
+ public struct DispatchTime : Comparable , Sendable {
20
20
#if HAVE_MACH
21
21
private static let timebaseInfo : mach_timebase_info_data_t = {
22
22
var info = mach_timebase_info_data_t ( numer: 1 , denom: 1 )
@@ -96,7 +96,7 @@ extension DispatchTime {
96
96
}
97
97
}
98
98
99
- public struct DispatchWallTime : Comparable {
99
+ public struct DispatchWallTime : Comparable , Sendable {
100
100
public let rawValue : dispatch_time_t
101
101
102
102
public static func now( ) -> DispatchWallTime {
@@ -165,7 +165,7 @@ private func toInt64Clamped(_ value: Double) -> Int64 {
165
165
/// let t1 = DispatchTimeInterval.seconds(Int.max)
166
166
/// let t2 = DispatchTimeInterval.milliseconds(Int.max)
167
167
/// let result = t1 == t2 // true
168
- public enum DispatchTimeInterval : Equatable {
168
+ public enum DispatchTimeInterval : Equatable , Sendable {
169
169
case seconds( Int )
170
170
case milliseconds( Int )
171
171
case microseconds( Int )
You can’t perform that action at this time.
0 commit comments