Use throwOnTimeout
option for PQueue
This commit is contained in:
parent
bd6ee4b16d
commit
76a30a5196
10 changed files with 54 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue