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

Method stop

lib/internal/vfs/watcher.js:542–552  ·  view source on GitHub ↗

* Stops the watcher.

()

Source from the content-addressed store, hash-verified

540 * Stops the watcher.
541 */
542 stop() {
543 if (this.#closed) return;
544 this.#closed = true;
545
546 if (this.#timer) {
547 clearInterval(this.#timer);
548 this.#timer = null;
549 }
550
551 this.emit('stop');
552 }
553
554 /**
555 * Makes the timer not keep the process alive.

Callers

nothing calls this directly

Calls 2

clearIntervalFunction · 0.85
emitMethod · 0.45

Tested by

no test coverage detected