* 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.
()
| 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 | /** |
no test coverage detected