DJWassink / Promise-parallel-throttle

It's kinda like Promise.all(), but throttled!
MIT License
81 stars 3 forks source link

Resolve immediately if tasks array is empty #11

Closed travellingprog closed 7 years ago

travellingprog commented 7 years ago

Right now, if the tasks array is empty, then Throttle.all() will just hang. Promise.all() would resolve instead. I can get past this in my code easily enough, but for compatibility with Promise.all(), it should have the same behaviour.

DJWassink commented 7 years ago

Good catch will fix this this evening. Thnx!

DJWassink commented 7 years ago

Fixed in v2.3.0

Cheers!