Richie Bendall

Results 140 comments of Richie Bendall

`intervalCap`?

Maybe we could imitate the prototype functions of `Set` within the class. Would be breaking through.

@sindresorhus What do you think? This would allow the queue to support features like #76.

I'm ok with breaking ESM support but a lack of Intl.Segmenter support is a problem. Not sure what to do.

Related to https://github.com/sindresorhus/p-map/issues/20?

So you mean when `input` is an async iterable?

If `mapper` returns something like `pMap.setConcurrency(5)` then it should set the `concurrency` value in memory and then spin up more calls to `next()` as needed. Already running `next()` chains should...

Yes. It would work in a similar way to `pMap.stop`.

Do we want to call `.cancel` or similar on all of the incomplete promises if it is stopped?

Workaround: ```js const decompress = require('decompress'); Promise.resolve(decompress(...)).then(...).catch(...).finally(...); ```