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

Method pause

lib/internal/readline/interface.js:562–571  ·  view source on GitHub ↗

* Pauses the `input` stream. * @returns {void | Interface}

()

Source from the content-addressed store, hash-verified

560 * @returns {void | Interface}
561 */
562 pause() {
563 if (this.closed) {
564 throw new ERR_USE_AFTER_CLOSE('readline');
565 }
566 if (this.paused) return;
567 this.input.pause();
568 this.paused = true;
569 this.emit('pause');
570 return this;
571 }
572
573 /**
574 * Resumes the `input` stream if paused.

Callers 3

closeMethod · 0.95
[kTabComplete]Method · 0.95
[kTtyWrite]Method · 0.95

Calls 2

pauseMethod · 0.65
emitMethod · 0.45

Tested by

no test coverage detected