Use throwOnTimeout option for PQueue

This commit is contained in:
Fedor Indutny
2021-11-23 23:01:03 +01:00
committed by GitHub
parent bd6ee4b16d
commit 76a30a5196
10 changed files with 54 additions and 10 deletions

View File

@@ -649,6 +649,7 @@ export async function _waitForAll<T>({
const queue = new PQueue({
concurrency: maxConcurrency,
timeout: 2 * 60 * 1000,
throwOnTimeout: true,
});
return queue.addAll(tasks);
}