Skip to content

FrancescoCioria/staggerjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaggerJS

Very light utility to stagger a list of async methods.

Install

npm i --save staggerjs

Usage

import stagger from 'staggerjs';

// asyncMethods is an array of functions that return a Promise

stagger(asyncMethods, { maxOngoingMethods: 10, perSecond: 30 });

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).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published