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

Method off

deps/npm/lib/utils/display.js:489–500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

487 }
488
489 off () {
490 if (!this.#enabled) {
491 return
492 }
493 clearTimeout(this.#timeout)
494 this.#timeout = null
495 clearInterval(this.#interval)
496 this.#interval = null
497 this.#frameIndex = 0
498 this.#lastUpdate = 0
499 this.#clearSpinner()
500 }
501
502 resume () {
503 this.#render(true)

Callers

nothing calls this directly

Calls 3

#clearSpinnerMethod · 0.95
clearIntervalFunction · 0.85
clearTimeoutFunction · 0.50

Tested by

no test coverage detected