Skip to content

Commit f3d53c4

Browse files
committed
Make the types in the module conform to Sendable
1 parent d9d71f8 commit f3d53c4

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

Sources/SwiftYMD/DayOfWeek.swift

+2
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ extension DayOfWeek: CustomStringConvertible {
2323
}
2424
}
2525
}
26+
27+
extension DayOfWeek: Sendable {}

Sources/SwiftYMD/Month.swift

+2
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ extension Month: CustomStringConvertible {
6868
}
6969
}
7070
}
71+
72+
extension Month: Sendable {}

Sources/SwiftYMD/YM.swift

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ extension YM: CustomStringConvertible {
8989
}
9090
}
9191

92+
extension YM: Sendable {}
93+
9294
extension YM {
9395
public static func + (lhs: YM, rhs: YMInterval) -> YM {
9496
switch rhs {

Sources/SwiftYMD/YMD.swift

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ extension YMD: CustomStringConvertible {
8383
}
8484
}
8585

86+
extension YMD: Sendable {}
87+
8688
extension YMD {
8789
public static func + (lhs: YMD, rhs: YMDInterval) -> YMD {
8890
switch rhs {

Sources/SwiftYMD/YMDInterval.swift

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ public enum YMDInterval {
55
case weeks(Int)
66
}
77

8+
extension YMDInterval: Sendable {}
9+
810
extension YMDInterval {
911
public static prefix func + (value: YMDInterval) -> YMDInterval {
1012
value

Sources/SwiftYMD/YMInterval.swift

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ public enum YMInterval {
33
case months(Int)
44
}
55

6+
extension YMInterval: Sendable {}
7+
68
extension YMInterval {
79
public static prefix func + (value: YMInterval) -> YMInterval {
810
value

Sources/SwiftYMD/Year.swift

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ extension Year: ExpressibleByIntegerLiteral {
6464
}
6565
}
6666

67+
extension Year: Sendable {}
68+
6769
extension Year {
6870
public static func + (lhs: Year, rhs: Year) -> Year {
6971
.init(rawValue: lhs.rawValue + rhs.rawValue)

0 commit comments

Comments
 (0)