mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(cli): Concurrency not fully using queue potential (#11828)
This commit is contained in:
parent
a60209db3e
commit
6729782c3f
3 changed files with 67 additions and 39 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue