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

+5
View File
@@ -288,6 +288,11 @@ extension SystemString {
}
}
#if compiler(>=5.5) && canImport(_Concurrency)
extension SystemChar: Sendable {}
extension SystemString: Sendable {}
#endif
// TODO: SystemString should use a COW-interchangable storage form rather
// than array, so you could "borrow" the storage from a non-bridged String
// or Data or whatever