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
@@ -128,6 +128,11 @@ public class CheckedIndex {
128
128
public func fileHasInMemoryModifications( _ url: URL ) -> Bool {
129
129
return checker. fileHasInMemoryModifications ( url)
130
130
}
131
+
132
+ /// Wait for IndexStoreDB to be updated based on new unit files written to disk.
133
+ public func pollForUnitChangesAndWait( ) {
134
+ self . index. pollForUnitChangesAndWait ( )
135
+ }
131
136
}
132
137
133
138
/// 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