smooth

Smooth, throttle, queue async function parallel execution with a limitation.

Smooth.js

var limit = 5;
var smooth = require('smooth')(limit);

smooth a function

foo = smooth(foo);

smooth a method of class.

RedisClient.prototype.get = smooth(RedisClient.prototype.get);

smooth a method of object.

redisClient.get = smooth(redisClient.get)