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

Function ondata

lib/internal/streams/legacy.js:20–24  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

18 const source = this;
19
20 function ondata(chunk) {
21 if (dest.writable && dest.write(chunk) === false && source.pause) {
22 source.pause();
23 }
24 }
25
26 source.on('data', ondata);
27

Callers

nothing calls this directly

Calls 2

pauseMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected