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