Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ ondrain
Function
ondrain
lib/internal/streams/legacy.js:28–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
source.on(
'data'
, ondata);
27
28
function
ondrain() {
29
if
(source.readable && source.resume) {
30
source.resume();
31
}
32
}
33
34
dest.on(
'drain'
, ondrain);
35
Callers
1
cleanup
Function · 0.70
Calls
1
resume
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…