throttle-lock

0.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i throttle-lock

    Weekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    9.86 kB

    Total Files

    7

    Last publish

    Collaborators

    • stonephp