()
| 85 | } |
| 86 | |
| 87 | private dequeue(): void { |
| 88 | if (!this.queue.length) return; |
| 89 | const task = this.queue.shift()!; |
| 90 | const slot = this.getFreeSlot(); |
| 91 | if (slot) this.dispatch(slot, task); |
| 92 | } |
| 93 | |
| 94 | terminate(): void { |
| 95 | for (const slot of this.slots) { |
no test coverage detected