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

Method setTimeout

out/cli.cjs:54162–54180  ·  view source on GitHub ↗
(value, type2)

Source from the content-addressed store, hash-verified

54160 this.paused = false;
54161 this.resume = this.resume.bind(this);
54162 this.bytesRead = 0;
54163 this.keepAlive = "";
54164 this.contentLength = "";
54165 this.connection = "";
54166 this.maxResponseSize = client[kMaxResponseSize];
54167 }
54168 setTimeout(value, type2) {
54169 this.timeoutType = type2;
54170 if (value !== this.timeoutValue) {
54171 timers.clearTimeout(this.timeout);
54172 if (value) {
54173 this.timeout = timers.setTimeout(onParserTimeout, value, this);
54174 if (this.timeout.unref) {
54175 this.timeout.unref();
54176 }
54177 } else {
54178 this.timeout = null;
54179 }
54180 this.timeoutValue = value;
54181 } else if (this.timeout) {
54182 if (this.timeout.refresh) {
54183 this.timeout.refresh();

Callers 8

constructorMethod · 0.80
keepSocketAliveMethod · 0.80
reuseSocketMethod · 0.80
[INIT_SOCKET]Method · 0.80
destroyOnTimeoutFunction · 0.80
onHeadersCompleteMethod · 0.80
_resumeFunction · 0.80
cli.cjsFile · 0.80

Calls 1

refreshMethod · 0.80

Tested by

no test coverage detected