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

Function isDestroyed

deps/undici/src/lib/core/util.js:353–355  ·  view source on GitHub ↗

* @param {import ('stream').Stream} body * @returns {boolean}

(body)

Source from the content-addressed store, hash-verified

351 * @returns {boolean}
352 */
353function isDestroyed (body) {
354 return body && !!(body.destroyed || body[kDestroyed] || (stream.isDestroyed?.(body)))
355}
356
357/**
358 * @param {import ('stream').Stream} stream

Callers 1

destroyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected