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

Method constructor

github-actions/saucelabs/set-saucelabs-env.js:15474–15487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15472 fr[kState] = "loading";
15473 fr[kResult] = null;
15474 fr[kError] = null;
15475 const stream = blob.stream();
15476 const reader = stream.getReader();
15477 const bytes = [];
15478 let chunkPromise = reader.read();
15479 let isFirstChunk = true;
15480 (() => __async(this, null, function* () {
15481 while (!fr[kAborted]) {
15482 try {
15483 const { done, value } = yield chunkPromise;
15484 if (isFirstChunk && !fr[kAborted]) {
15485 queueMicrotask(() => {
15486 fireAProgressEvent("loadstart", fr);
15487 });
15488 }
15489 isFirstChunk = false;
15490 if (!done && types.isUint8Array(value)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected