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

Function isLocked

deps/undici/undici.js:17299–17301  ·  view source on GitHub ↗
(bodyReadable)

Source from the content-addressed store, hash-verified

17297 }
17298 };
17299 function isLocked(bodyReadable) {
17300 return bodyReadable[kBody]?.locked === true || bodyReadable[kConsume] !== null;
17301 }
17302 __name(isLocked, "isLocked");
17303 function isUnusable(bodyReadable) {
17304 return util.isDisturbed(bodyReadable) || isLocked(bodyReadable);

Callers 1

isUnusableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected