MCPcopy Create free account
hub / github.com/microsoft/SandDance / asyncGeneratorStep

Function asyncGeneratorStep

docs/app/js/sanddance-app.js:53461–53471  ·  view source on GitHub ↗
(gen, resolve, reject, _next, _throw, key, arg)

Source from the content-addressed store, hash-verified

53459var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
53460parcelHelpers.defineInteropFlag(exports);
53461function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
53462 try {
53463 var info = gen[key](arg);
53464 var value = info.value;
53465 } catch (error) {
53466 reject(error);
53467 return;
53468 }
53469 if (info.done) resolve(value);
53470 else Promise.resolve(value).then(_next, _throw);
53471}
53472function _asyncToGenerator(fn) {
53473 return function() {
53474 var self = this, args = arguments;

Callers 2

_nextFunction · 0.70
_throwFunction · 0.70

Calls 2

rejectFunction · 0.85
resolveFunction · 0.70

Tested by

no test coverage detected