Lines Matching refs:limit
1 call-limit
8 const limit = require('call-limit')
9 const limitedStat = limit(fs.stat, 5)
16 const limit = require('call-limit')
17 const limitedStat = limit.promise(fs.statAsync, 5)
25 const limit = require('call-limit') argument
28 ### limit(func, maxRunning) → limitedFunc
34 it completes, or `call-limit` won't know to dequeue the next thing to run. argument
39 ### limit.promise(func, maxRunning) → limitedFunc argument
49 ### limit.method(class, methodName, maxRunning) argument
54 class.prototype.methodName = limit(class.prototype.methodName, maxRunning)
57 ### limit.method(object, methodName, maxRunning) argument
62 object.methodName = limit(object.methodName, maxRunning)
65 For example `limit.promise.method(fs, 'stat', 5)` is the same as
66 `fs.stat = limit.promise(fs.stat, 5)`.
68 ### limit.promise.method(class, methodName, maxRunning) argument
73 class.prototype.methodName = limit.promise(class.prototype.methodName, maxRunning)
76 ### limit.promise.method(object, methodName, maxRunning) argument
81 object.methodName = limit.promise(object.methodName, maxRunning)
84 For example `limit.promise.method(fs, 'statAsync', 5)` is the same as
85 `fs.statAsync = limit.promise(fs.statAsync, 5)`.