MCPcopy Create free account
hub / github.com/tiann/hapi / invalidateAndAwait

Method invalidateAndAwait

cli/src/utils/sync.ts:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 async invalidateAndAwait() {
30 if (this._stopped) {
31 return;
32 }
33 await new Promise<void>(resolve => {
34 this._pendings.push(resolve);
35 this.invalidate();
36 });
37 }
38
39 stop() {
40 if (this._stopped) {

Callers 1

startFunction · 0.80

Calls 2

invalidateMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected