()
| 42 | let timerId: ReturnType<typeof setInterval> | null = null; |
| 43 | |
| 44 | const startPolling = () => { |
| 45 | stopPolling(); |
| 46 | timerId = setInterval(fetchTasks, POLL_INTERVAL); |
| 47 | }; |
| 48 | |
| 49 | const stopPolling = () => { |
| 50 | if (timerId !== null) { |
no test coverage detected