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

Function scheduleBuildInvalidatedProject

test/fixtures/snapshot/typescript.js:125324–125333  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

125322 scheduleBuildInvalidatedProject(state);
125323 }
125324 function scheduleBuildInvalidatedProject(state) {
125325 var hostWithWatch = state.hostWithWatch;
125326 if (!hostWithWatch.setTimeout || !hostWithWatch.clearTimeout) {
125327 return;
125328 }
125329 if (state.timerToBuildInvalidatedProject) {
125330 hostWithWatch.clearTimeout(state.timerToBuildInvalidatedProject);
125331 }
125332 state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, 250, state);
125333 }
125334 function buildNextInvalidatedProject(state) {
125335 state.timerToBuildInvalidatedProject = undefined;
125336 if (state.reportFileChangeDetected) {

Callers 2

Calls 1

setTimeoutMethod · 0.45

Tested by

no test coverage detected