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

Function emitReadable

lib/internal/streams/readable.js:833–842  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

831// another read() call => stack overflow. This way, it might trigger
832// a nextTick recursion warning, but that's not so bad.
833function emitReadable(stream) {
834 const state = stream._readableState;
835 debug('emitReadable');
836 state[kState] &= ~kNeedReadable;
837 if ((state[kState] & kEmittedReadable) === 0) {
838 debug('emitReadable', (state[kState] & kFlowing) !== 0);
839 state[kState] |= kEmittedReadable;
840 process.nextTick(emitReadable_, stream);
841 }
842}
843
844function emitReadable_(stream) {
845 const state = stream._readableState;

Callers 3

addChunkFunction · 0.85
readable.jsFile · 0.85
onEofChunkFunction · 0.85

Calls 1

debugFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…