fix(cli): Concurrency not fully using queue potential (#11828)

This commit is contained in:
Lena Tauchner 2024-11-15 19:09:56 +01:00 committed by GitHub
parent a60209db3e
commit 6729782c3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 67 additions and 39 deletions

View file

@ -72,8 +72,8 @@ export class Queue<T, R> {
* @returns Promise<void> - The returned Promise will be resolved when all tasks in the queue have been processed by a worker.
* This promise could be ignored as it will not lead to a `unhandledRejection`.
*/
async drained(): Promise<void> {
await this.queue.drain();
drained(): Promise<void> {
return this.queue.drained();
}
/**