()
| 43 | } |
| 44 | |
| 45 | private update() { |
| 46 | if (!this.isExecuting && this.queue.length > 0) { |
| 47 | // Update flag |
| 48 | this.isExecuting = true; |
| 49 | // Start executing |
| 50 | this.executeNext() |
| 51 | .finally(() => { this.isExecuting = false; }); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Execute the next event in the queue (and continue doing so until the queue is empty). |
no test coverage detected