MCPcopy Create free account
hub / github.com/pillarjs/multiparty / flushEmitQueue

Function flushEmitQueue

index.js:665–677  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

663}
664
665function flushEmitQueue(self) {
666 while (self.emitQueue.length > 0 && self.emitQueue[0].cb) {
667 var item = self.emitQueue.shift();
668
669 // invoke the callback
670 item.cb();
671
672 if (item.err) {
673 // emit the delayed error
674 item.ee.emit('error', item.err);
675 }
676 }
677}
678
679function handlePart(self, partStream) {
680 beginFlush(self);

Callers 1

holdEmitQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…