MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / waitUntilWatcherReady

Method waitUntilWatcherReady

src/index.ts:1136–1138  ·  view source on GitHub ↗

* Resolves once the file watcher has installed its watch set. Useful for * tests that need a deterministic boundary before asserting on * `getPendingFiles()`. Resolves immediately when no watcher is active.

(timeoutMs?: number)

Source from the content-addressed store, hash-verified

1134 * `getPendingFiles()`. Resolves immediately when no watcher is active.
1135 */
1136 waitUntilWatcherReady(timeoutMs?: number): Promise<void> {
1137 return this.watcher ? this.watcher.waitUntilReady(timeoutMs) : Promise.resolve();
1138 }
1139
1140 /**
1141 * Get files that have changed since last index

Callers 1

Calls 2

waitUntilReadyMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected