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

Function pipeOnDrain

map-chat/javascript/browserMqtt.js:3390–3398  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

3388};
3389
3390function pipeOnDrain(src) {
3391 return function() {
3392 var dest = this;
3393 var state = src._readableState;
3394 state.awaitDrain--;
3395 if (state.awaitDrain === 0)
3396 flow(src);
3397 };
3398}
3399
3400function flow(src) {
3401 var state = src._readableState;

Callers 1

browserMqtt.jsFile · 0.85

Calls 1

flowFunction · 0.85

Tested by

no test coverage detected