Skip to content

Commit

Permalink
fix: address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandepass committed Feb 4, 2025
1 parent 7cb1e18 commit 7a79bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/helix-shared-process-queue/src/process-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ export default async function processQueue(
}

for await (const value of iter) {
await waitForToken();

if (abortSignal?.aborted) {
return results;
}

await waitForToken();

while (running.length >= maxConcurrent) {
// eslint-disable-next-line no-await-in-loop
await Promise.race(running);
Expand Down

0 comments on commit 7a79bb3

Please sign in to comment.