MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / ReadableStreamDefaultControllerGetDesiredSize

Function ReadableStreamDefaultControllerGetDesiredSize

out/cli.cjs:13386–13395  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

13384 ReadableStreamError(stream4, e3);
13385 }
13386 function ReadableStreamDefaultControllerGetDesiredSize(controller) {
13387 const state2 = controller._controlledReadableStream._state;
13388 if (state2 === "errored") {
13389 return null;
13390 }
13391 if (state2 === "closed") {
13392 return 0;
13393 }
13394 return controller._strategyHWM - controller._queueTotalSize;
13395 }
13396 function ReadableStreamDefaultControllerHasBackpressure(controller) {
13397 if (ReadableStreamDefaultControllerShouldCallPull(controller)) {
13398 return false;

Callers 3

desiredSizeMethod · 0.85
desiredSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…