MCPcopy Index your code
hub / github.com/nodejs/node / #startPolling

Method #startPolling

lib/internal/vfs/watcher.js:442–451  ·  view source on GitHub ↗

* Starts the polling timer.

()

Source from the content-addressed store, hash-verified

440 * Starts the polling timer.
441 */
442 #startPolling() {
443 if (this.#closed) return;
444
445 this.#timer = setInterval(() => this.#poll(), this.#interval);
446
447 // If not persistent, unref the timer to allow process to exit
448 if (!this.#persistent && this.#timer.unref) {
449 this.#timer.unref();
450 }
451 }
452
453 /**
454 * Polls for changes.

Callers 1

constructorMethod · 0.95

Calls 3

#pollMethod · 0.95
setIntervalFunction · 0.50
unrefMethod · 0.45

Tested by

no test coverage detected