Run promise-returning & async functions a specific number of times concurrently
by sindresorhusJavaScript
Last 12 weeks · 0 commits
4 of 6 standards met
Normal for loops can end early by using or . Might be useful to have the ability here too. Does that make sense? Possible implementations: 1 Add a method for ending the iteration in the second argument to : : 2 Add ability to throw a special error to end the iteration without rejection the promise: 3 Add ability to return special to end the iteration: While 2 and 3 are more verbose, they have the benefit of working even in a nested promise chain.
Repository: sindresorhus/p-times. Description: Run promise-returning & async functions a specific number of times concurrently Stars: 41, Forks: 6. Primary language: JavaScript. Languages: JavaScript (58.5%), TypeScript (41.5%). License: MIT. Latest release: v4.0.0 (4y ago). Open PRs: 0, open issues: 1. Last activity: 4y ago. Community health: 71%. Top contributors: sindresorhus, BendingBender, Richienb, TriPSs.