Skip to content

Commit

Permalink
fix: run build
Browse files Browse the repository at this point in the history
  • Loading branch information
Fjandin committed Dec 12, 2023
1 parent 204eb57 commit 1eccd2d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cdn/radash.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,15 @@ class AggregateError extends Error {
this.errors = errors;
}
}
const parallel = async (limit, array, func) => {
const parallel = async (limit, array, func, options) => {
const work = array.map((item, index) => ({
index,
item
}));
const processor = async (res) => {
const results2 = [];
while (true) {
const next = work.pop();
const next = options?.executeInOrder ? work.shift() : work.pop();
if (!next)
return res(results2);
const [error, result] = await tryit(func)(next.item);
Expand Down
4 changes: 2 additions & 2 deletions cdn/radash.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +388,15 @@ var radash = (function (exports) {
this.errors = errors;
}
}
const parallel = async (limit, array, func) => {
const parallel = async (limit, array, func, options) => {
const work = array.map((item, index) => ({
index,
item
}));
const processor = async (res) => {
const results2 = [];
while (true) {
const next = work.pop();
const next = options?.executeInOrder ? work.shift() : work.pop();
if (!next)
return res(results2);
const [error, result] = await tryit(func)(next.item);
Expand Down
Loading

0 comments on commit 1eccd2d

Please sign in to comment.