javascript-sync-async-foreach icon indicating copy to clipboard operation
javascript-sync-async-foreach copied to clipboard

async forEach breaks when items exceed 2050 in an array.

Open DhavalKriplani opened this issue 7 years ago • 1 comments

I wanted to asynchronously loop through 10000 items. It broke. I kept on decreasing the items until I reached 2050. It runs successfully when items are <=2050 but not >2050. It showed me this: Error: at next (...\node_modules\async-foreach\lib\foreach.js:46:23) I was unable to read the complete error as the console had an overflow of this error. It kept repeating the same line over and over...

Though when I removed the this.async line, it ran perfectly.

DhavalKriplani avatar May 09 '18 08:05 DhavalKriplani

Sounds like a memory overflow

knoxcard avatar May 24 '18 06:05 knoxcard