You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make FileSystem and conforming types as Sendable (#402)
Types that conform to `FileSystem` either don't have in-memory state to be protected with locks at all and use blocking I/O under the hood (like `LocalFileSystem`), or already protect their state with locks, like `InMemoryFileSystem`. Few other types in SwiftPM conforming to `FileSystem` either also use locks (like `GitFileSystemView`) or are read-only (like `VirtualFileSystem`). I'm convinced that adding a `Sendable` requirement on `FileSystem` is beneficial overall, since it's already passed around between Dispatch queues and other concurrent code that would allow us to resolve sendability warnings.
0 commit comments