An open API service indexing awesome lists of open source software.

promise-fun

Promise packages, patterns, chat, and tutorials
https://github.com/sindresorhus/promise-fun

Last synced: 13 days ago
JSON representation

FAQ

How can I run 100 async/promise-returning functions with only 5 running at once?

  • `p-map` - they are eager. So by the time p-map starts reading the array, all the actions creating those promises have already started running. p-map works by executing a promise-returning function in a mapper function. This way the promises are created lazily and can be concurrency limited. Check out p-all instead if you're using different functions to get each promise.

Packages

`.then`/`.catch`-based packages