MCPcopy
hub / github.com/colbymchenry/codegraph / stop

Function stop

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

Source from the content-addressed store, hash-verified

54 },
55
56 stop() {
57 return new Promise<void>((resolve) => {
58 const timeout = setTimeout(() => {
59 worker.terminate().then(() => resolve());
60 }, 2000);
61
62 worker.on('message', (msg: { type: string }) => {
63 if (msg.type === 'stopped') {
64 clearTimeout(timeout);
65 worker.terminate().then(() => resolve());
66 }
67 });
68
69 worker.postMessage({ type: 'stop' });
70 });
71 },
72 };
73}

Callers

nothing calls this directly

Calls 4

terminateMethod · 0.65
onMethod · 0.65
postMessageMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected