async-throttle
Throttling made simple, easy, async.
How to use
This example fetches the <title>
tag of the supplied websites,
but it processes a maximum of two at a time.
// depsconst fetch = const createThrottle = const cheerio = load // codeconst throttle = const urls = 'https://zeit.co' 'https://google.com' /* … */Promiseallurls
To run this example:
git clone git@github.com:zeit/async-throttle
cd async-throttle
npm install
npm run example