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

Function startTimer

out/cli.cjs:25150–25159  ·  view source on GitHub ↗
(socket)

Source from the content-addressed store, hash-verified

25148 socket.addListener("timeout", socket.destroy);
25149 }
25150 function startTimer(socket) {
25151 if (self2._timeout) {
25152 clearTimeout(self2._timeout);
25153 }
25154 self2._timeout = setTimeout(function() {
25155 self2.emit("timeout");
25156 clearTimer();
25157 }, msecs);
25158 destroyOnTimeout(socket);
25159 }
25160 function clearTimer() {
25161 if (self2._timeout) {
25162 clearTimeout(self2._timeout);

Calls 5

clearTimeoutFunction · 0.85
setTimeoutFunction · 0.85
clearTimerFunction · 0.85
destroyOnTimeoutFunction · 0.85
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…