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
Train ML Models With SQL You Already Know Icon
Train ML Models With SQL You Already Know

BigQuery automates data prep, analysis, and predictions with built-in AI assistance.

Build and deploy ML models using familiar SQL. Automate data prep with built-in Gemini. Query 1 TB and store 10 GB free monthly.
Start Free
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

1 day ago