cowboy / javascript-sync-async-foreach

An optionally-asynchronous forEach with an interesting interface.
MIT License
76 stars 11 forks source link

async forEach breaks when items exceed 2050 in an array. #9

Open DhavalKriplani opened 6 years ago

DhavalKriplani commented 6 years ago

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.

knoxcard commented 6 years ago

Sounds like a memory overflow