(dirName, dirPath, fileName, options)
| 6622 | removeChildWatches(parentWatcher); |
| 6623 | } |
| 6624 | function scheduleUpdateChildWatches(dirName, dirPath, fileName, options) { |
| 6625 | var existing = cacheToUpdateChildWatches.get(dirPath); |
| 6626 | if (existing) { |
| 6627 | existing.fileNames.push(fileName); |
| 6628 | } |
| 6629 | else { |
| 6630 | cacheToUpdateChildWatches.set(dirPath, { dirName: dirName, options: options, fileNames: [fileName] }); |
| 6631 | } |
| 6632 | if (timerToUpdateChildWatches) { |
| 6633 | clearTimeout(timerToUpdateChildWatches); |
| 6634 | timerToUpdateChildWatches = undefined; |
| 6635 | } |
| 6636 | timerToUpdateChildWatches = setTimeout(onTimerToUpdateChildWatches, 1000); |
| 6637 | } |
| 6638 | function onTimerToUpdateChildWatches() { |
| 6639 | timerToUpdateChildWatches = undefined; |
| 6640 | sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size)); |
no test coverage detected