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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
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

2026-09-08