idb read queue
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Martti Malmi 2024-01-05 01:16:57 +02:00
parent 70b85dcc9c
commit 29a8db28dd

View File

@ -99,10 +99,10 @@ class IndexedDB extends Dexie {
if (!this.isProcessingQueue && this.readQueue.size > 0) {
this.isProcessingQueue = true;
for (const [key, task] of this.readQueue.entries()) {
this.readQueue.delete(key); // allow to re-queue right away
console.log("starting idb task", key);
console.time(key);
await task();
this.readQueue.delete(key);
console.timeEnd(key);
}
this.isProcessingQueue = false;