Commit a47ef13
authored
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.
1 parent 4683dfa commit a47ef13
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
553 | 551 | | |
554 | 552 | | |
555 | 553 | | |
| |||
1008 | 1006 | | |
1009 | 1007 | | |
1010 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1011 | 1012 | | |
1012 | 1013 | | |
1013 | 1014 | | |
| |||
1159 | 1160 | | |
1160 | 1161 | | |
1161 | 1162 | | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1162 | 1167 | | |
1163 | 1168 | | |
1164 | 1169 | | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1165 | 1173 | | |
1166 | 1174 | | |
1167 | 1175 | | |
| |||
0 commit comments