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

Function errorEventQueue

index.js:650–663  ·  view source on GitHub ↗
(self, eventEmitter, err)

Source from the content-addressed store, hash-verified

648}
649
650function errorEventQueue(self, eventEmitter, err) {
651 var items = self.emitQueue.filter(function (item) {
652 return item.ee === eventEmitter;
653 });
654
655 if (items.length === 0) {
656 eventEmitter.emit('error', err);
657 return;
658 }
659
660 items.forEach(function (item) {
661 item.err = err;
662 });
663}
664
665function flushEmitQueue(self) {
666 while (self.emitQueue.length > 0 && self.emitQueue[0].cb) {

Callers 1

handleErrorFunction · 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…