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

Method end

github-actions/browserstack/set-browserstack-env.js:6995–7030  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6993 const writer = new AsyncWriter({ abort, socket, request, contentLength, client, expectsPayload, header });
6994 try {
6995 try {
6996 for (var iter = __forAwait(body), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
6997 const chunk = temp.value;
6998 if (socket[kError]) {
6999 throw socket[kError];
7000 }
7001 if (!writer.write(chunk)) {
7002 yield waitForDrain();
7003 }
7004 }
7005 } catch (temp) {
7006 error = [temp];
7007 } finally {
7008 try {
7009 more && (temp = iter.return) && (yield temp.call(iter));
7010 } finally {
7011 if (error)
7012 throw error[0];
7013 }
7014 }
7015 writer.end();
7016 } catch (err) {
7017 writer.destroy(err);
7018 } finally {
7019 socket.off("close", onDrain).off("drain", onDrain);
7020 }
7021 });
7022 }
7023 var AsyncWriter = class {
7024 constructor({ abort, socket, request, contentLength, client, expectsPayload, header }) {
7025 this.socket = socket;
7026 this.request = request;
7027 this.contentLength = contentLength;
7028 this.client = client;
7029 this.bytesWritten = 0;
7030 this.expectsPayload = expectsPayload;
7031 this.header = header;
7032 this.abort = abort;
7033 socket[kWriting] = true;

Callers 10

""Function · 0.45
_finalMethod · 0.45
onFinishedFunction · 0.45
writeIterableFunction · 0.45
writeBufferFunction · 0.45
writeBlobFunction · 0.45
onCompleteMethod · 0.45
packageDataFunction · 0.45
execMethod · 0.45
getExecOutputFunction · 0.45

Calls 3

onRequestSentMethod · 0.45
writeMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected