MCPcopy
hub / github.com/SBoudrias/Inquirer.js / complete

Function complete

packages/inquirer/src/utils/observable.ts:274–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272 observers.clear();
273 },
274 complete() {
275 if (completed || errored) {
276 return;
277 }
278
279 completed = true;
280 for (const { observer, subscription } of observers) {
281 subscription.closed = true;
282 callObserver(() => observer.complete?.());
283 }
284 observers.clear();
285 },
286 };
287}
288

Callers

nothing calls this directly

Calls 4

callObserverFunction · 0.85
resolvePendingFunction · 0.85
completeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected