Add availability attributes to Sendable conformances

This commit is contained in:
Guillaume Lessard committed 2023-06-21 14:50:47 -07:00
1 parent a87eaf71f6
commit adbf8d2856
5 files changed
+15

No files matched your search

+5
View File
@@ -481,7 +481,12 @@ extension FileDescriptor.OpenOptions
//@available(*, unavailable, message: "File descriptors are not completely thread-safe.")
//extension FileDescriptor: Sendable {}
@available(/*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8, *)
extension FileDescriptor.AccessMode: Sendable {}
@available(/*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8, *)
extension FileDescriptor.OpenOptions: Sendable {}
@available(/*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8, *)
extension FileDescriptor.SeekOrigin: Sendable {}
#endif
+1
View File
@@ -69,5 +69,6 @@ extension FilePath {
extension FilePath: Hashable, Codable {}
#if compiler(>=5.5) && canImport(_Concurrency)
@available(/*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8, *)
extension FilePath: Sendable {}
#endif
@@ -241,6 +241,9 @@ extension FilePath.ComponentView {
}
#if compiler(>=5.5) && canImport(_Concurrency)
@available(/*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8, *)
extension FilePath.ComponentView: Sendable {}
@available(/*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8, *)
extension FilePath.ComponentView.Index: Sendable {}
#endif
@@ -287,7 +287,12 @@ extension FilePath.Root {
}
#if compiler(>=5.5) && canImport(_Concurrency)
@available(/*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8, *)
extension FilePath.Root: Sendable {}
@available(/*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8, *)
extension FilePath.Component: Sendable {}
@available(/*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8, *)
extension FilePath.Component.Kind: Sendable {}
#endif
+1
View File
@@ -177,5 +177,6 @@ extension FilePermissions
}
#if compiler(>=5.5) && canImport(_Concurrency)
@available(/*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8, *)
extension FilePermissions: Sendable {}
#endif