-
Couldn't load subscription status.
- Fork 2.4k
Closed
Labels
Milestone
Description
Nice to have in ES2017 async/await development
const asyncjs = require('async');
const foo = async () => {
const arr = Array.from({ length: 1000 }, (v, i) => i);
const transformedArr = await asyncjs.mapLimit(arr, 100, async (v) => {
return await Promise.resolve(v * 2);
});
console.log(transformedArr);
}
jeremyhon, megawac, ssrballin, robin-ambachtsheer, winsontam and 22 more