@schamane/small-graphql-mongoose-middleware
Version:

10 lines • 363 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.serialExec = void 0;
const serialExec = (tasks, fn) => tasks.reduce(async (promise, task) => {
const result = await promise;
const taskResult = await fn(task);
return [...result, taskResult];
}, []);
exports.serialExec = serialExec;
//# sourceMappingURL=async.js.map