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

Function handlePart

index.js:679–695  ·  view source on GitHub ↗
(self, partStream)

Source from the content-addressed store, hash-verified

677}
678
679function handlePart(self, partStream) {
680 beginFlush(self);
681 var emitAndReleaseHold = holdEmitQueue(self, partStream);
682 partStream.on('end', function() {
683 endFlush(self);
684 });
685 emitAndReleaseHold(function() {
686 if (hasListeners(self, 'part')) {
687 self.emit('part', partStream)
688 } else {
689 partStream.on('error', function (err) {
690 self.handleError(err)
691 })
692 partStream.resume()
693 }
694 });
695}
696
697function handleFile(self, fileStream) {
698 if (self.error) return;

Callers 1

index.jsFile · 0.85

Calls 4

beginFlushFunction · 0.85
holdEmitQueueFunction · 0.85
endFlushFunction · 0.85
hasListenersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…