MCPcopy
hub / github.com/exceljs/exceljs / writeComplete

Function writeComplete

lib/utils/stream-buf.js:284–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 },
283 end(chunk, encoding, callback) {
284 const writeComplete = error => {
285 if (error) {
286 callback(error);
287 } else {
288 this._flush();
289 this.pipes.forEach(pipe => {
290 pipe.end();
291 });
292 this.emit('finish');
293 }
294 };
295 if (chunk) {
296 this.write(chunk, encoding, writeComplete);
297 } else {

Callers 1

endFunction · 0.85

Calls 4

_flushMethod · 0.80
emitMethod · 0.80
forEachMethod · 0.65
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…