MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / destroyOnTimeout

Function destroyOnTimeout

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

Source from the content-addressed store, hash-verified

25143 RedirectableRequest.prototype.setTimeout = function(msecs, callback) {
25144 var self2 = this;
25145 function destroyOnTimeout(socket) {
25146 socket.setTimeout(msecs);
25147 socket.removeListener("timeout", socket.destroy);
25148 socket.addListener("timeout", socket.destroy);
25149 }
25150 function startTimer(socket) {
25151 if (self2._timeout) {
25152 clearTimeout(self2._timeout);

Callers 1

startTimerFunction · 0.85

Calls 3

setTimeoutMethod · 0.80
removeListenerMethod · 0.80
addListenerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…