MCPcopy Index your code
hub / github.com/nodejs/node / isLocked

Function isLocked

deps/undici/src/lib/api/readable.js:339–342  ·  view source on GitHub ↗

* @see https://streams.spec.whatwg.org/#readablestream-locked * @param {BodyReadable} bodyReadable * @returns {boolean}

(bodyReadable)

Source from the content-addressed store, hash-verified

337 * @returns {boolean}
338 */
339function isLocked (bodyReadable) {
340 // Consume is an implicit lock.
341 return bodyReadable[kBody]?.locked === true || bodyReadable[kConsume] !== null
342}
343
344/**
345 * @see https://fetch.spec.whatwg.org/#body-unusable

Callers 1

isUnusableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected