Home
last modified time | relevance | path

Searched refs:classOrObj (Results 1 – 1 of 1) sorted by relevance

/third_party/node/deps/npm/node_modules/call-limit/
Dcall-limit.js38 module.exports.method = function (classOrObj, method, maxRunning) { argument
39 if (typeof classOrObj === 'function') {
40 const func = classOrObj.prototype[method]
41 classOrObj.prototype[method] = limit(func, maxRunning) class
43 const func = classOrObj[method]
44 classOrObj[method] = limit(func, maxRunning)
91 module.exports.promise.method = function (classOrObj, method, maxRunning) { argument
92 if (typeof classOrObj === 'function') {
93 const func = classOrObj.prototype[method]
94 classOrObj.prototype[method] = limit.promise(func, maxRunning)
[all …]