MCPcopy Create free account
hub / github.com/Tencent/libpag / execNextTask

Method execNextTask

web/src/utils/queue.ts:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 }
30
31 private execNextTask() {
32 if (this.queue.length < 1) {
33 this.executing = false;
34 return;
35 }
36 this.executing = true;
37 const task = this.queue.shift() as Task;
38 task.fn().then(() => {
39 this.execNextTask();
40 });
41 }
42}

Callers 1

execMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected