Skip to content

open-node/throttle-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async concurrency control

Usage

 npm i throttle-lock --save 

Example

const axios = requrie('axios');
const { throttleLock } = require('throttle-lock');

const get = throttleLock('get-request', axios.get, axios, 5, 20);

get(url1);
get(url2);
get(url3);
get(url4);
get(url5);
get(url6);
get(url7);

Releases

No releases published

Packages

No packages published