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

Function ReadableByteStreamControllerGetDesiredSize

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

Source from the content-addressed store, hash-verified

11719 return controller._byobRequest;
11720 }
11721 function ReadableByteStreamControllerGetDesiredSize(controller) {
11722 const state2 = controller._controlledReadableByteStream._state;
11723 if (state2 === "errored") {
11724 return null;
11725 }
11726 if (state2 === "closed") {
11727 return 0;
11728 }
11729 return controller._strategyHWM - controller._queueTotalSize;
11730 }
11731 function ReadableByteStreamControllerRespond(controller, bytesWritten) {
11732 const firstDescriptor = controller._pendingPullIntos.peek();
11733 const state2 = controller._controlledReadableByteStream._state;

Callers 2

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…