ChrisRich
ChrisRich

Reputation: 8716

Async mapLimit change limit

Is there a way to change the limit parameter in async.mapLimit once the function has been called?

I'm creating a http loader and want to reduce the limit if http errors start to occur.

https://github.com/caolan/async

Upvotes: 0

Views: 374

Answers (1)

vmkcom
vmkcom

Reputation: 1668

Change your mapLimit method to queue

https://github.com/caolan/async#queueworker-concurrency

it's allow change concurrency parameter on the fly

Upvotes: 1

Related Questions