_wrap_async_generator.js 457 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _wrapAsyncGenerator;
  6. var _asyncGeneratorMjs = _interopRequireDefault(require("./_async_generator.js"));
  7. function _wrapAsyncGenerator(fn) {
  8. return function() {
  9. return new _asyncGeneratorMjs.default(fn.apply(this, arguments));
  10. };
  11. }
  12. function _interopRequireDefault(obj) {
  13. return obj && obj.__esModule ? obj : {
  14. default: obj
  15. };
  16. }