(task: string)
| 110 | } |
| 111 | |
| 112 | run(task: string) { |
| 113 | this.#pending.push(task); |
| 114 | if (!this.#queued) { |
| 115 | this.#queued = true; |
| 116 | queueMicrotask(() => { |
| 117 | this.#runTasks(); |
| 118 | }); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | #runNextTask() { |
| 123 | if (this.#pending.length === 0) return; |
no test coverage detected