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

Function onpause

lib/internal/bootstrap/switches/is_main_thread.js:267–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265 });
266
267 function onpause() {
268 if (!stdin._handle)
269 return;
270 if (stdin._handle.reading && !stdin.readableFlowing) {
271 stdin._readableState.reading = false;
272 stdin._handle.reading = false;
273 stdin._handle.readStop();
274 }
275 }
276
277 addCleanup(function cleanupStdin() {
278 stdin.destroy();

Callers

nothing calls this directly

Calls 1

readStopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…