MCPcopy Create free account
hub / github.com/microsoft/tslib / resume

Function resume

tslib.js:279–279  ·  view source on GitHub ↗
(n, v)

Source from the content-addressed store, hash-verified

277 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
278 function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
279 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
280 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
281 function fulfill(value) { resume("next", value); }
282 function reject(value) { resume("throw", value); }

Callers 4

verbFunction · 0.70
fulfillFunction · 0.70
rejectFunction · 0.70
settleFunction · 0.70

Calls 2

stepFunction · 0.70
settleFunction · 0.70

Tested by

no test coverage detected