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

Function restartChild

lib/internal/main/watch_mode.js:190–192  ·  view source on GitHub ↗
({ trigger } = kEmptyObject)

Source from the content-addressed store, hash-verified

188async function init() {
189 let child = start();
190 const restartChild = async ({ trigger } = kEmptyObject) => {
191 child = await restart(child, trigger);
192 };
193 watcher
194 .on('changed', restartChild)
195 .on('error', (error) => {

Callers

nothing calls this directly

Calls 1

restartFunction · 0.70

Tested by

no test coverage detected