wrapAsyncGenerator.js 293 B

123456789
  1. var AsyncGenerator = require("./AsyncGenerator.js");
  2. function _wrapAsyncGenerator(fn) {
  3. return function () {
  4. return new AsyncGenerator(fn.apply(this, arguments));
  5. };
  6. }
  7. module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;