mirror of
https://github.com/apple/swift-system
synced 2026-11-26 04:57:54 +00:00
Add availability attributes to Sendable conformances
This commit is contained in:
1 parent
a87eaf71f6
commit
adbf8d2856
5 files changed
+15
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user