File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1029,7 +1029,11 @@ public final class InMemoryFileSystem: FileSystem {
1029
1029
}
1030
1030
1031
1031
// Internal state of `InMemoryFileSystem` is protected with a lock in all of its `public` methods.
1032
+ #if compiler(>=5.7)
1032
1033
extension InMemoryFileSystem : @unchecked Sendable { }
1034
+ #else
1035
+ extension InMemoryFileSystem : UnsafeSendable { }
1036
+ #endif
1033
1037
1034
1038
/// A rerooted view on an existing FileSystem.
1035
1039
///
@@ -1184,7 +1188,11 @@ public final class RerootedFileSystemView: FileSystem {
1184
1188
1185
1189
// `RerootedFileSystemView` doesn't hold any internal state and can be considered `Sendable` since
1186
1190
// `underlyingFileSystem` is required to be `Sendable`.
1191
+ #if compiler(>=5.7)
1187
1192
extension RerootedFileSystemView : @unchecked Sendable { }
1193
+ #else
1194
+ extension RerootedFileSystemView : UnsafeSendable { }
1195
+ #endif
1188
1196
1189
1197
private var _localFileSystem : FileSystem = LocalFileSystem ( )
1190
1198
You can’t perform that action at this time.
0 commit comments