StaggerJS
Very light utility to stagger a list of async methods.
Install
npm i --save staggerjs
Usage
; // asyncMethods is an array of functions that return a Promise ;
Given a set of async methods, with staggerjs
you can easily enforce a maximum number of ongoing methods (maxOngoingMethods
) and also apply a throttle (perSecond
).