UNPKG

request-limit-pool

Version:

library for limit the maximum number of requests

1 lines 559 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.finishedEventName=exports.default=void 0;var ErrorObj={insError:"request method must return a promise ins @request-pool,please check the method requestPool.push()",doneCbError:"the finish callback must be a function,please check the method request.done()",nanError:"number is needed,check new RequestPool()",naMinusOrZero:"not a minus or zero,check new RequestPool()"},finishedEventName="done",_default=(exports.finishedEventName=finishedEventName,ErrorObj);exports.default=_default;