Skip to content

Instantly share code, notes, and snippets.

@MarkoSh
MarkoSh / queue.js
Last active September 6, 2025 09:48
class RequestQueue {
queue: Promise<void> = Promise.resolve();
constructor() {
const $this = this;
}
async add(fn: any) {
const $this = this;