MCPcopy
hub / github.com/node-formidable/formidable / done

Function done

src/plugins/octetstream.js:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 this.ended = true;
68
69 const done = () => {
70 file.end(() => {
71 this.emit('file', 'file', file);
72 this._maybeEnd();
73 });
74 };
75
76 if (outstandingWrites === 0) {
77 done();

Calls 2

_maybeEndMethod · 0.80
endMethod · 0.45

Tested by 1

testNextFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…