Closed monolithed closed 7 years ago
The current API could definitely use some refactoring since there are a lot arguments right now.
Let me think about it for a bit, I will definitely get back to this!
v3.0.0 introduces a new API which looks like:
Throttle.all(tasks, {
maxInProgress: DEFAULT_MAX,
failFast: true,
nextCheck: defaultNextTaskCheck,
progressCallback: null
})
Cheers! 🎉
Before:
After:
It's just a proposal