skoconc

A nice, lightweight module that limits concurrency of a function. If you're looking to say 'I want 3 instances of this to run at a time', then this module is for you.

Usage no npm install needed!

<script type="module">
  import skoconc from 'https://cdn.skypack.dev/skoconc';
</script>

README

skoconc is intended to be a lightweight library for queuing functions with limited concurrency. This module is intended to be very basic and simple to use.

Using SKOCONC

From your project directory:

    $ npm install skoconc

Within your application:

    var skoconc = require("skoconc");
    
    var somefunction = function(args,callback){ 
        /* do some stuff here */
        callback();
    };
    skoconc.max(5);    
    skoconc.push(somefunction, somefunctionsargs);

Is this All?

Long answer: sho nuff.