Construct a new ThrottledPromiseAll.
Add source items to the queue of promises to be resolved. Adding an item to the queue requires a producer function that will take the source item and return a promise. Each item in the can have a different producer function, as long as the producer function conforms the types of the ThrottledPromiseAll when constructed.
Returns a promise that resolves the items present in the queue using the associated producer.
This function will throw an error if the timeout is reached before all items in the queue are resolved (see PromiseOptions.timeout).
A promise that resolves to an array of results.
A promise that throttles the number of promises running at a time.
The constructor takes PromiseOptions to initialize the constraints of the promise.