Extends Aigle.parallel functionality
suguru03 opened this issue · 1 comments
suguru03 commented
I'm thinking to extend Aigle.parallel
functionality as below,
(async () => {
const array1 = await Aigle.parallel([
(async () => 1)(),
(async () => 2)(),
(async () => 3)(),
]);
console.log(array1); // [1, 2, 3]
const array2 = await Aigle.parallel([
async () => 1,
async () => 2,
async () => 3,
]);
console.log(array2); // [[AsyncFunction], [AsyncFunction], [AsyncFunction]]
})();
// ↓
(async () => {
const array3 = await Aigle.parallel([
async () => 1,
async () => 2,
async () => 3,
]);
console.log(array3); // [1, 2, 3]
})();
Also, I'll add Aigle.series
and Aigle.parallelLimit
which are smilar to async.series
and async.parallelLimit
.
suguru03 commented
Done :)