标签: node.js asynchronous
有没有办法在调用函数后更改async.mapLimit中的limit参数?
我正在创建一个http加载器,并希望在http错误开始发生时减少限制。
https://github.com/caolan/async
答案 0 :(得分:1)
将JSONObject json = new JSONObject("some random json string");方法更改为mapLimit
JSONObject json = new JSONObject("some random json string");
mapLimit
https://github.com/caolan/async#queueworker-concurrency
它允许动态更改queue参数
queue