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

Function fireAProgressEvent

github-actions/browserstack/set-browserstack-env.js:15360–15366  ·  view source on GitHub ↗
(e, reader)

Source from the content-addressed store, hash-verified

15358 if (!done && types.isUint8Array(value)) {
15359 bytes.push(value);
15360 if ((fr[kLastProgressEventFired] === void 0 || Date.now() - fr[kLastProgressEventFired] >= 50) && !fr[kAborted]) {
15361 fr[kLastProgressEventFired] = Date.now();
15362 queueMicrotask(() => {
15363 fireAProgressEvent("progress", fr);
15364 });
15365 }
15366 chunkPromise = reader.read();
15367 } else if (done) {
15368 queueMicrotask(() => {
15369 fr[kState] = "done";

Callers 2

readOperationFunction · 0.70
abortMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected