p-map icon indicating copy to clipboard operation
p-map copied to clipboard

Map over promises concurrently

Results 14 p-map issues
Sort by recently updated
recently updated
newest added

Closes #31 Note: this PR also currently includes a bug fix for an edge case, see below. *edit:* no longer true, moved to #40

The idea was brought up in #28. Not entirely sure what the best API would be for this though. Feedback welcome.

I wish I could stop the iteration early by returning something like `pMap.stop` (a Symbol) from the iterator. This is basically the same request as https://github.com/sindresorhus/p-each-series/issues/3 For now, I have...

enhancement
help wanted

Both, `console.trace` and `throw new Error` don't show the stack-trace beyond the point p-map got called. In other words, the functions that called before pMap, disappear from the stack trace....

enhancement
help wanted

Do you have a module that calculates and exports a reasonable default value for concurrency? For example what is done in https://github.com/sindresorhus/got/pull/393. I'm planning to use p-map in some parts...

I think this package is missing an important functionality, and that is to see the results of resolved promises when one of the promises from the promise chain gets rejected....

I'm not sure if this is the right place to submit an idea, but it would be interesting to have a function `p` that allows executing a specified number of...

We have encountered a memory leak issue. After an extensive search for the source of the leak, it was found that it occurred in pMap. Upon reviewing the source code...

bug
help wanted

`pMapIterable` currently yields `mapper` results in the order they were obtained from the input `iterable`. In other words, `pMapIterable` [always waits for, and returns, the first promise in the queue](https://github.com/sindresorhus/p-map/blob/a38d5a7180ba9ecd6a02e37ec5cc6ae11f3433ac/index.js#L244)....

enhancement
help wanted

## Summary Adds a `preserveOrder` option to `pMapIterable`, which indicates > Whether the output iterable should produce the results of the `mapper` on elements of the `input` iterable in the...