MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / executeNext

Method executeNext

src/back/util/EventQueue.ts:60–67  ·  view source on GitHub ↗

* Execute the next event in the queue (and continue doing so until the queue is empty). * * @returns A promise that resolves when it reaches the end of the queue.

()

Source from the content-addressed store, hash-verified

58 * @returns A promise that resolves when it reaches the end of the queue.
59 */
60 private async executeNext(): Promise<void> {
61 const event = this.queue.shift();
62 if (event) {
63 try { await executeEventFunction(event); }
64 catch (error) { this.onError(error); }
65 await this.executeNext();
66 }
67 }
68}
69
70/**

Callers 1

updateMethod · 0.95

Calls 2

executeEventFunctionFunction · 0.85
onErrorMethod · 0.45

Tested by

no test coverage detected