MCPcopy Create free account
hub / github.com/nodejs/node / setTraceSigInt

Function setTraceSigInt

lib/internal/util/trace_sigint.js:17–25  ·  view source on GitHub ↗
(enable)

Source from the content-addressed store, hash-verified

15}
16
17function setTraceSigInt(enable) {
18 if (!isMainThread)
19 throw new ERR_WORKER_UNSUPPORTED_OPERATION('Calling util.setTraceSigInt');
20 if (enable) {
21 getSigintWatchdog().start();
22 } else {
23 getSigintWatchdog().stop();
24 }
25};
26
27module.exports = {
28 setTraceSigInt,

Callers

nothing calls this directly

Calls 3

getSigintWatchdogFunction · 0.85
stopMethod · 0.65
startMethod · 0.45

Tested by

no test coverage detected