Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL] Bump ava from 5.3.1 to 6.1.2 #985

Merged
merged 10 commits into from
Mar 4, 2024
Merged
4 changes: 4 additions & 0 deletions lib/processors/minifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ function getPool(taskUtil) {
let {idleWorkers, totalWorkers} = pool.stats();
while (idleWorkers !== totalWorkers && !force) {
await setTimeoutPromise(100); // Wait a bit workers to finish and try again

if (!pool) { // pool might have been terminated in the meantime
return;
}
({idleWorkers, totalWorkers} = pool.stats());
}

Expand Down
4 changes: 4 additions & 0 deletions lib/tasks/buildThemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ function getPool(taskUtil) {
let {idleWorkers, totalWorkers} = pool.stats();
while (idleWorkers !== totalWorkers && !force) {
await setTimeoutPromise(100); // Wait a bit workers to finish and try again

if (!pool) { // pool might have been terminated in the meantime
return;
}
({idleWorkers, totalWorkers} = pool.stats());
}

Expand Down
Loading
Loading