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

Function fire

graph-ui/src/app/ui-log.test.ts:45–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 });
44 /** Fire the newest live timer, as the browser would when its time comes. */
45 const fire = async (): Promise<void> => {
46 const live = timers.filter((timer) => !timer.cancelled);
47 const timer = live[live.length - 1];
48 if (timer === undefined) {
49 throw new Error('no timer armed');
50 }
51 timer.cancelled = true;
52 timer.fn();
53 await Promise.resolve();
54 await Promise.resolve();
55 };
56 return { buffer, posts, timers, fire };
57}
58

Callers 1

ui-log.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected