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

Function finish

src/ui/shimmer-progress.ts:105–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 return new Promise<void>((resolve) => {
104 let settled = false;
105 const finish = (): void => {
106 if (settled) return;
107 settled = true;
108 // Worker has cleared (or been terminated off) the animation line;
109 // persist the final phase's done-line from the main thread.
110 printPhaseDone();
111 resolve();
112 };
113
114 const timeout = setTimeout(() => {
115 worker.terminate().then(finish);

Callers

nothing calls this directly

Calls 2

printPhaseDoneFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected