Throttle amount of promises open at a given time
You can do this in one short function. (Returns values in order per naomik’s suggestion. Thanks!) /** * Performs a list of callable actions (promise factories) so * that only a limited number of promises are pending at any * given time. * * @param listOfCallableActions An array of callable functions, * which should return … Read more