MCPcopy Create free account
hub / github.com/cedriking/spark / runNext

Method runNext

src/task-queue.ts:41–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 private async runNext() {
42 if (this.running) return;
43
44 const task = this.tasks.shift();
45 if (!task) return;
46
47 try {
48 await (this.running = task());
49 } finally {
50 this.running = undefined;
51 }
52
53 this.runNext();
54 }
55}

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected