Generic callback queue using promises for managing async task execution with priority support. Current version 0.0.11 is early-stage with minimal adoption. Provides a lightweight alternative to full-featured async queues like Bull or Bee-Queue, but lacks persistence, monitoring, and production hardening. Ships TypeScript types. Low release cadence.
npm install CBQueueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, enqueues two tasks with different priorities, and processes them sequentially.
Call queue.process(handler) after enqueuing tasks.
Enqueue all tasks before calling .process(), or use a separate queue instance.
Do not rely on priority for critical ordering; use a dedicated priority queue library.
Ensure you import CBQueue as a named export: import { CBQueue } from 'cbqueue'Ensure each task returns a Promise (or async function).
No dependency data recorded yet.