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

Function ReadableStreamDefaultControllerShouldCallPull

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

Source from the content-addressed store, hash-verified

13318 });
13319 }
13320 function ReadableStreamDefaultControllerShouldCallPull(controller) {
13321 const stream4 = controller._controlledReadableStream;
13322 if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) {
13323 return false;
13324 }
13325 if (!controller._started) {
13326 return false;
13327 }
13328 if (IsReadableStreamLocked(stream4) && ReadableStreamGetNumReadRequests(stream4) > 0) {
13329 return true;
13330 }
13331 const desiredSize = ReadableStreamDefaultControllerGetDesiredSize(controller);
13332 if (desiredSize > 0) {
13333 return true;
13334 }
13335 return false;
13336 }
13337 function ReadableStreamDefaultControllerClearAlgorithms(controller) {
13338 controller._pullAlgorithm = void 0;
13339 controller._cancelAlgorithm = void 0;

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…