MCPcopy Create free account
hub / github.com/angular/dev-infra / pull

Function pull

github-actions/browserstack/set-browserstack-env.js:1482–1499  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

1480 });
1481 },
1482 pull(controller) {
1483 return __async(this, null, function* () {
1484 const { done, value } = yield iterator.next();
1485 if (done) {
1486 queueMicrotask(() => {
1487 var _a2;
1488 controller.close();
1489 (_a2 = controller.byobRequest) == null ? void 0 : _a2.respond(0);
1490 });
1491 } else {
1492 const buf = Buffer.isBuffer(value) ? value : Buffer.from(value);
1493 if (buf.byteLength) {
1494 controller.enqueue(new Uint8Array(buf));
1495 }
1496 }
1497 return controller.desiredSize > 0;
1498 });
1499 },
1500 cancel(reason) {
1501 return __async(this, null, function* () {
1502 yield iterator.return();

Callers

nothing calls this directly

Calls 6

__asyncFunction · 0.70
readableStreamCloseFunction · 0.70
isErroredFunction · 0.70
pullAlgorithmFunction · 0.70
nextMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected