MCPcopy
hub / github.com/Kong/insomnia / __asyncGenerator

Function __asyncGenerator

packages/insomnia/bin/yarn-standalone.js:245–255  ·  view source on GitHub ↗
(thisArg, _arguments, generator)

Source from the content-addressed store, hash-verified

243}
244
245function __asyncGenerator(thisArg, _arguments, generator) {
246 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
247 var g = generator.apply(thisArg, _arguments || []), i, q = [];
248 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
249 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); }); }; }
250 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
251 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
252 function fulfill(value) { resume("next", value); }
253 function reject(value) { resume("throw", value); }
254 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
255}
256
257function __asyncDelegator(o) {
258 var i, p;

Callers

nothing calls this directly

Calls 1

verbFunction · 0.85

Tested by

no test coverage detected