()
| 397 | } |
| 398 | |
| 399 | private async processQueue(): Promise<void> { |
| 400 | while (this.readyQueue.length > 0) { |
| 401 | if (this.checkCancellation() || this.errorFlag) { |
| 402 | break |
| 403 | } |
| 404 | const nodeId = this.dequeue() |
| 405 | if (!nodeId) continue |
| 406 | const promise = this.executeNodeAsync(nodeId) |
| 407 | this.trackExecution(promise) |
| 408 | } |
| 409 | |
| 410 | if (this.executing.size > 0 && !this.cancelledFlag && !this.errorFlag) { |
| 411 | await this.waitForAnyExecution() |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | private async executeNodeAsync(nodeId: string): Promise<void> { |
| 416 | try { |
no test coverage detected