MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / stopWithError

Function stopWithError

graph-ui/src/galaxy/use-organic-layout.ts:64–68  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

62 const instance = worker.current;
63 instance.onmessage = (event: MessageEvent<OrganicLayoutResponse>) => accept(event.data);
64 const stopWithError = (message: string) => {
65 instance.terminate();
66 if (worker.current === instance) worker.current = undefined;
67 fail(message);
68 };
69 instance.onerror = event => {
70 event.preventDefault();
71 stopWithError(event.message || 'The graph layout worker failed.');

Callers 1

useOrganicLayoutFunction · 0.85

Calls 1

failFunction · 0.70

Tested by

no test coverage detected