* Stops the watcher.
()
| 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. |
nothing calls this directly
no test coverage detected