wrapAsyncGenerator.js 187 B

123456
  1. import AsyncGenerator from "./AsyncGenerator.js";
  2. export default function _wrapAsyncGenerator(fn) {
  3. return function () {
  4. return new AsyncGenerator(fn.apply(this, arguments));
  5. };
  6. }