MCPcopy Index your code
hub / github.com/nodejs/node / restart

Function restart

test/sequential/test-watch-mode-worker.mjs:16–20  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

14 common.skip('IBMi does not support `fs.watch()`');
15
16function restart(file) {
17 appendFileSync(file, '\n');
18 const timer = setInterval(() => appendFileSync(file, '\n'), common.platformTimeout(250));
19 return () => clearInterval(timer);
20}
21
22function changeDetected(file) {
23 return `Change detected in ${inspect(file)}`;

Callers 1

runWriteSucceedFunction · 0.70

Calls 3

appendFileSyncFunction · 0.85
clearIntervalFunction · 0.85
setIntervalFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…