MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / drain

Function drain

MathBox/mathbox-core.js:520–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

518 }
519
520 function drain() {
521 while(buffer.length && !stream.paused) {
522 var data = buffer.shift()
523 if(null === data)
524 return stream.emit('end')
525 else
526 stream.emit('data', data)
527 }
528 }
529
530 stream.queue = stream.push = function (data) {
531// console.error(ended)

Callers 1

throughFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected