MCPcopy
hub / github.com/claude-code-best/claude-code / stopPolling

Method stopPolling

src/utils/task/TaskOutput.ts:97–103  ·  view source on GitHub ↗

* Stop polling the output file. Called from React useEffect cleanup * when the progress component unmounts.

(taskId: string)

Source from the content-addressed store, hash-verified

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.

Callers 3

runPowerShellCommandFunction · 0.80
runShellCommandFunction · 0.80
clearMethod · 0.80

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected