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

Function resume

github-actions/browserstack/set-browserstack-env.js:129–136  ·  view source on GitHub ↗
(k2, v, yes, no)

Source from the content-addressed store, hash-verified

127 };
128 var __asyncGenerator = (__this, __arguments, generator) => {
129 var resume = (k2, v, yes, no) => {
130 try {
131 var x = generator[k2](v), isAwait = (v = x.value) instanceof __await, done = x.done;
132 Promise.resolve(isAwait ? v[0] : v).then((y) => isAwait ? resume(k2 === "return" ? k2 : "next", v[1] ? { done: y.done, value: y.value } : y, yes, no) : yes({ value: y, done })).catch((e) => resume("throw", e, yes, no));
133 } catch (e) {
134 no(e);
135 }
136 };
137 var method = (k2) => it[k2] = (x) => new Promise((yes, no) => resume(k2, x, yes, no));
138 var it = {};
139 return generator = generator.apply(__this, __arguments), it[__knownSymbol("asyncIterator")] = () => it, method("next"), method("throw"), method("return"), it;

Callers 5

methodFunction · 0.70
constructorMethod · 0.70
[kDispatch]Method · 0.70
_resumeFunction · 0.70
_readMethod · 0.70

Calls 3

resumeH1Function · 0.70
resumeH2Function · 0.70
_resumeFunction · 0.70

Tested by

no test coverage detected