MCPcopy Index your code
hub / github.com/nodejs/node / pull2Algorithm

Function pull2Algorithm

lib/internal/webstreams/readablestream.js:2077–2091  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2075 }
2076
2077 function pull2Algorithm() {
2078 if (reading) {
2079 readAgainForBranch2 = true;
2080 return PromiseResolve();
2081 }
2082 reading = true;
2083
2084 const byobRequest = branch2[kState].controller.byobRequest;
2085 if (byobRequest === null) {
2086 pullWithDefaultReader();
2087 } else {
2088 pullWithBYOBReader(byobRequest[kState].view, true);
2089 }
2090 return PromiseResolve();
2091 }
2092
2093 function cancel1Algorithm(reason) {
2094 canceled1 = true;

Callers 1

[kChunk]Function · 0.85

Calls 2

pullWithDefaultReaderFunction · 0.85
pullWithBYOBReaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…