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

Function ReadableStreamDefaultControllerClose

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

Source from the content-addressed store, hash-verified

13340 controller._strategySizeAlgorithm = void 0;
13341 }
13342 function ReadableStreamDefaultControllerClose(controller) {
13343 if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) {
13344 return;
13345 }
13346 const stream4 = controller._controlledReadableStream;
13347 controller._closeRequested = true;
13348 if (controller._queue.length === 0) {
13349 ReadableStreamDefaultControllerClearAlgorithms(controller);
13350 ReadableStreamClose(stream4);
13351 }
13352 }
13353 function ReadableStreamDefaultControllerEnqueue(controller, chunk) {
13354 if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) {
13355 return;

Callers 4

closeMethod · 0.85
pullAlgorithmFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…