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

Function __async

github-actions/browserstack/set-browserstack-env.js:104–123  ·  view source on GitHub ↗
(__this, __arguments, generator)

Source from the content-addressed store, hash-verified

102 return method;
103 };
104 var __async = (__this, __arguments, generator) => {
105 return new Promise((resolve2, reject) => {
106 var fulfilled = (value) => {
107 try {
108 step(generator.next(value));
109 } catch (e) {
110 reject(e);
111 }
112 };
113 var rejected = (value) => {
114 try {
115 step(generator.throw(value));
116 } catch (e) {
117 reject(e);
118 }
119 };
120 var step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
121 step((generator = generator.apply(__this, __arguments)).next());
122 });
123 };
124 var __await = function(promise, isYieldStar) {
125 this[0] = promise;
126 this[1] = isYieldStar;

Callers 15

startFunction · 0.70
pullFunction · 0.70
cancelFunction · 0.70
fullyReadBodyFunction · 0.70
readAllBytesFunction · 0.70
consumeBodyFunction · 0.70
lazyllhttpFunction · 0.70
connectH1Function · 0.70
writeBlobFunction · 0.70
writeIterableFunction · 0.70
connectH2Function · 0.70
[kClose]Method · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected