Skip to content

Commit 7c19a4f

Browse files
authored
DispatchWallTime and Time are also sendable
1 parent 29ebbaa commit 7c19a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/swift/Time.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import 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 {

0 commit comments

Comments
 (0)