Skip to content

Commit 91934eb

Browse files
committed
Add Sendable to Date, DateComponents and Data
1 parent ba1e4f6 commit 91934eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Darwin/Foundation-swiftoverlay/Date.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import CoreFoundation
1919

2020
A `Date` is independent of a particular calendar or time zone. To represent a `Date` to a user, you must interpret it in the context of a `Calendar`.
2121
*/
22-
public struct Date : ReferenceConvertible, Comparable, Equatable {
22+
public struct Date : ReferenceConvertible, Comparable, Equatable, @unchecked Sendable {
2323
public typealias ReferenceType = NSDate
2424

2525
fileprivate var _time : TimeInterval

Darwin/Foundation-swiftoverlay/DateComponents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
When a new instance of `DateComponents` is created, the date components are set to `nil`.
2121
*/
22-
public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _MutableBoxing {
22+
public struct DateComponents : ReferenceConvertible, Hashable, Equatable, @unchecked Sendable, _MutableBoxing {
2323
public typealias ReferenceType = NSDateComponents
2424

2525
internal var _handle: _MutableHandle<NSDateComponents>

Sources/Foundation/Data.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ internal class __NSSwiftData : NSData {
660660
}
661661

662662
@frozen
663-
public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes {
663+
public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, @unchecked Sendable {
664664
public typealias ReferenceType = NSData
665665

666666
public typealias ReadingOptions = NSData.ReadingOptions

0 commit comments

Comments
 (0)