Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ onclose
Function
onclose
lib/internal/streams/legacy.js:52–57 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
50
51
52
function
onclose() {
53
if
(didOnEnd)
return
;
54
didOnEnd = true;
55
56
if
(typeof dest.destroy ===
'function'
) dest.destroy();
57
}
58
59
// Don't leave dangling pipes when there are errors.
60
function
onerror(er) {
Callers
nothing calls this directly
Calls
1
destroy
Method · 0.45
Tested by
no test coverage detected