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

Function __awaiter6

github-actions/bazel/configure-remote/configure-remote.js:20571–20597  ·  view source on GitHub ↗
(thisArg, _arguments, P, generator)

Source from the content-addressed store, hash-verified

20569 state.processExited = true;
20570 this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);
20571 state.CheckComplete();
20572 });
20573 cp.on("close", (code) => {
20574 state.processExitCode = code;
20575 state.processExited = true;
20576 state.processClosed = true;
20577 this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
20578 state.CheckComplete();
20579 });
20580 state.on("done", (error, exitCode) => {
20581 if (stdbuffer.length > 0) {
20582 this.emit("stdline", stdbuffer);
20583 }
20584 if (errbuffer.length > 0) {
20585 this.emit("errline", errbuffer);
20586 }
20587 cp.removeAllListeners();
20588 if (error) {
20589 reject(error);
20590 } else {
20591 resolve2(exitCode);
20592 }
20593 });
20594 if (this.options.input) {
20595 if (!cp.stdin) {
20596 throw new Error("child process missing stdin");
20597 }
20598 cp.stdin.end(this.options.input);
20599 }
20600 }));

Callers 4

getWindowsInfoFunction · 0.70
getMacOsInfoFunction · 0.70
getLinuxInfoFunction · 0.70
getDetailsFunction · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected