MCPcopy
hub / github.com/di-sukharev/opencommit / clearTimer

Function clearTimer

out/cli.cjs:25160–25175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25158 destroyOnTimeout(socket);
25159 }
25160 function clearTimer() {
25161 if (self2._timeout) {
25162 clearTimeout(self2._timeout);
25163 self2._timeout = null;
25164 }
25165 self2.removeListener("abort", clearTimer);
25166 self2.removeListener("error", clearTimer);
25167 self2.removeListener("response", clearTimer);
25168 self2.removeListener("close", clearTimer);
25169 if (callback) {
25170 self2.removeListener("timeout", callback);
25171 }
25172 if (!self2.socket) {
25173 self2._currentRequest.removeListener("socket", startTimer);
25174 }
25175 }
25176 if (callback) {
25177 this.on("timeout", callback);
25178 }

Callers 1

startTimerFunction · 0.85

Calls 2

clearTimeoutFunction · 0.85
removeListenerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…