P-Map is a JavaScript utility for mapping over synchronous or asynchronous iterables while controlling concurrent promise execution. It is useful when the same async operation must process many inputs without starting every task at once. Unlike Promise.all, developers can set an explicit concurrency limit and choose how mapping errors should be handled. The library preserves input ordering in its returned results while allowing work to proceed concurrently. Its pMapIterable API streams completed mapped values through an async iterable and supports backpressure control. Operations can also be canceled with AbortSignal, while pMapSkip lets individual mapped values be omitted from the result. These controls make it suitable for network requests, queues, batch processing, and other resource-sensitive workloads.

Features

  • Configurable promise concurrency
  • Synchronous and asynchronous iterable support
  • Ordered concurrent result mapping
  • Async iterable streaming with backpressure
  • AbortSignal cancellation support
  • Optional result skipping and aggregate error handling

Project Samples

Project Activity

See All Activity >

Categories

System

Follow P-Map

P-Map Web Site

Other Useful Business Software
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

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

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript System Software

Registered

2 days ago