MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / makeSequence

Function makeSequence

dashboard/lib/sequence.ts:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 * Also exposed on the shell SDK (`utils.makeSequence`) for unbundled plugins.
20 */
21export function makeSequence(): Sequence {
22 let current = 0;
23 return {
24 next: () => ++current,
25 isCurrent: (ticket: number) => ticket === current,
26 invalidate: () => {
27 current += 1;
28 },
29 };
30}

Callers 4

useGraphSearchFunction · 0.90
useGraphInspectionFunction · 0.90
CodeGraphExplorerFunction · 0.90
lib-utils.test.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected