Add Sendable conformances (#115)

This commit is contained in:
Florian Friedrich authored and GitHub committed 2022-11-30 14:04:49 -07:00
1 parent 18cceda484
commit 77d9ca18c1
6 files changed
+34

No files matched your search

+3
View File
@@ -69,3 +69,6 @@ extension FilePath {
/*System 0.0.1, @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
extension FilePath: Hashable, Codable {}
#if compiler(>=5.5) && canImport(_Concurrency)
extension FilePath: Sendable {}
#endif
@@ -238,3 +238,8 @@ extension FilePath.ComponentView {
#endif // DEBUG
}
}
#if compiler(>=5.5) && canImport(_Concurrency)
extension FilePath.ComponentView: Sendable {}
extension FilePath.ComponentView.Index: Sendable {}
#endif
@@ -276,3 +276,9 @@ extension FilePath.Root {
#endif
}
}
#if compiler(>=5.5) && canImport(_Concurrency)
extension FilePath.Root: Sendable {}
extension FilePath.Component: Sendable {}
extension FilePath.Component.Kind: Sendable {}
#endif