File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public enum IndexCheckLevel {
47
47
/// `IndexCheckLevel`.
48
48
///
49
49
/// - SeeAlso: Comment on `IndexOutOfDateChecker`
50
- public class CheckedIndex {
50
+ public final class CheckedIndex : Sendable {
51
51
private var checker : IndexOutOfDateChecker
52
52
private let index : IndexStoreDB
53
53
@@ -135,6 +135,11 @@ public class CheckedIndex {
135
135
public func fileHasInMemoryModifications( _ url: URL ) -> Bool {
136
136
return checker. fileHasInMemoryModifications ( url)
137
137
}
138
+
139
+ /// Wait for IndexStoreDB to be updated based on new unit files written to disk.
140
+ public func pollForUnitChangesAndWait( ) {
141
+ self . index. pollForUnitChangesAndWait ( )
142
+ }
138
143
}
139
144
140
145
/// A wrapper around `IndexStoreDB` that allows the retrieval of a `CheckedIndex` with a specified check level or the
You can’t perform that action at this time.
0 commit comments