MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / emitReadable

Function emitReadable

map-chat/javascript/browserMqtt.js:3215–3228  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

3213// another read() call => stack overflow. This way, it might trigger
3214// a nextTick recursion warning, but that's not so bad.
3215function emitReadable(stream) {
3216 var state = stream._readableState;
3217 state.needReadable = false;
3218 if (state.emittedReadable)
3219 return;
3220
3221 state.emittedReadable = true;
3222 if (state.sync)
3223 process.nextTick(function() {
3224 emitReadable_(stream);
3225 });
3226 else
3227 emitReadable_(stream);
3228}
3229
3230function emitReadable_(stream) {
3231 stream.emit('readable');

Callers 3

readableAddChunkFunction · 0.85
browserMqtt.jsFile · 0.85
onEofChunkFunction · 0.85

Calls 1

emitReadable_Function · 0.85

Tested by

no test coverage detected