Skip to content

Commit

Permalink
Merge pull request #4829 from FranzBusch/fb-5.10-sendable
Browse files Browse the repository at this point in the history
FranzBusch authored Sep 26, 2023

Verified

This commit was signed with the committer’s verified signature.
lgou2w MoonLake
2 parents 9f53cc5 + 3267560 commit 595f137
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Foundation/Date.swift
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

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`.
*/
public struct Date : ReferenceConvertible, Comparable, Equatable {
public struct Date : ReferenceConvertible, Comparable, Equatable, Sendable {
public typealias ReferenceType = NSDate

fileprivate var _time: TimeInterval
2 changes: 1 addition & 1 deletion Sources/Foundation/DateComponents.swift
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@

When a new instance of `DateComponents` is created, the date components are set to `nil`.
*/
public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _MutableBoxing {
public struct DateComponents : ReferenceConvertible, Hashable, Equatable, Sendable, _MutableBoxing {
public typealias ReferenceType = NSDateComponents

internal var _handle: _MutableHandle<NSDateComponents>
2 changes: 1 addition & 1 deletion Sources/Foundation/DateInterval.swift
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
@_implementationOnly import CoreFoundation

/// DateInterval represents a closed date interval in the form of [startDate, endDate]. It is possible for the start and end dates to be the same with a duration of 0. DateInterval does not support reverse intervals i.e. intervals where the duration is less than 0 and the end date occurs earlier in time than the start date.
public struct DateInterval : ReferenceConvertible, Comparable, Hashable {
public struct DateInterval : ReferenceConvertible, Comparable, Sendable, Hashable {
public typealias ReferenceType = NSDateInterval

/// The start date.

0 comments on commit 595f137

Please sign in to comment.