MCPcopy Index your code
hub / github.com/nodejs/node / write

Function write

benchmark/streams/iter-throughput-broadcast.js:41–41  ·  view source on GitHub ↗
(data, enc, cb)

Source from the content-addressed store, hash-verified

39
40 for (let c = 0; c < numConsumers; c++) {
41 const w = new Writable({ write(data, enc, cb) { cb(); } });
42 source.pipe(w);
43 w.on('finish', () => { if (++finished === numConsumers) cb(); });
44 sinks.push(w);

Callers 1

runFunction · 0.70

Calls 5

cbFunction · 0.50
minMethod · 0.45
writeMethod · 0.45
onceMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…