MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / stopPolling

Method stopPolling

source code/utils/task/TaskOutput.ts:99–105  ·  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

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.

Callers 3

runPowerShellCommandFunction · 0.80
runShellCommandFunction · 0.80
clearMethod · 0.80

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected