MCPcopy Create free account
hub / github.com/nodejs/node / isDestroyed

Function isDestroyed

deps/undici/undici.js:1778–1780  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

1776 }
1777 __name(bodyLength, "bodyLength");
1778 function isDestroyed(body) {
1779 return body && !!(body.destroyed || body[kDestroyed] || stream.isDestroyed?.(body));
1780 }
1781 __name(isDestroyed, "isDestroyed");
1782 function destroy(stream2, err) {
1783 if (stream2 == null || !isStream(stream2) || isDestroyed(stream2)) {

Callers 1

destroyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected