P-Queue is a JavaScript promise queue for controlling how asynchronous and synchronous tasks are scheduled and executed. It is especially useful when applications must limit concurrent operations or respect external API rate limits. Developers can specify how many tasks may run simultaneously and how many may start within a defined time interval. Queued jobs can receive priorities, identifiers, timeouts, and AbortSignal-based cancellation support. The library exposes events and state information for monitoring active, pending, completed, rate-limited, empty, and idle queue conditions. Backpressure helpers can prevent producers from overwhelming the queue when work arrives faster than it can be processed. Custom queue implementations can also replace the default priority scheduler for specialized scheduling behavior.

Features

  • Configurable concurrency limits
  • Interval-based rate limiting
  • Task priorities and identifiers
  • Timeout and cancellation support
  • Queue events and lifecycle monitoring
  • Backpressure and custom scheduling support

Project Samples

Project Activity

See All Activity >

Categories

System

License

MIT License

Follow P-Queue

P-Queue Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of P-Queue!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript System Software

Registered

2026-09-07