sindresorhus / p-limit

Run multiple promise-returning & async functions with limited concurrency
MIT License
2.04k stars 106 forks source link

Minor refactor #50

Closed Limegrass closed 3 years ago

Limegrass commented 3 years ago

Minor change, tests passed.

I don't know if the spread has any performance implications (if any I'm sure it would be tiny), but given that the enqueue and run methods are private, I figure it probably couldn't hurt?

Feel free to reject.