Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
pause
Method · 0.65
write
Method · 0.45
Tested by
no test coverage detected