tidyq

A tiny queue with backpressure, retries, and nothing else.

Install

bun add tidyq

Usage

import { queue } from 'tidyq'

const q = queue({ concurrency: 4, retries: 2 })

for (const job of jobs) q.push(() => process(job))
await q.drain()

Why another queue?

tidyq typical alternative
Dependencies 0 12+
Size 1.1 kB 40 kB+
Backpressure built-in plugin

API

License

MIT