tinycoll
Version:
A minimal reactive document store with Mongo-like querying, reactivity, TTL support, and optional persistence.
29 lines (28 loc) • 649 B
JavaScript
export class PromiseQueue {
push(fn) {
this.
void this.
}
get size() {
return this.
}
async
if (this.
return;
this.
while (this.
const job = this.
if (!job)
continue;
try {
await job();
}
catch (err) {
console.error('PromiseQueue error:', err);
}
}
this.
}
}