This commit is contained in:
Sidharth Vinod
2022-10-20 12:17:06 +05:30
parent 797bac3370
commit ea0aaddc7e
+1
View File
@@ -37,6 +37,7 @@ export const errorDebug = (limit = 100) => {
}
};
// To queue async tasks so they are executed one after the other, not concurrently.
export class AsyncQueue<T> {
private readonly queue: T[] = [];
private running = false;