* Stop polling the output file. Called from React useEffect cleanup * when the progress component unmounts.
(taskId: string)
| 97 | * when the progress component unmounts. |
| 98 | */ |
| 99 | static stopPolling(taskId: string): void { |
| 100 | TaskOutput.#activePolling.delete(taskId) |
| 101 | if (TaskOutput.#activePolling.size === 0 && TaskOutput.#pollInterval) { |
| 102 | clearInterval(TaskOutput.#pollInterval) |
| 103 | TaskOutput.#pollInterval = null |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Shared tick: reads the file tail for every actively-polled task. |
no test coverage detected