Skip to content

RangeError when using queue with 5000+ tasks. #510

@LiamKarlMitchell

Description

@LiamKarlMitchell

I have made a pull request with a test that fails.
#509

RangeError Maximum call stack size exceeded

It is basicaly this

var q = async.queue(function(task,cb) { cb(); })
q.pause();

for (var i=0; i< 5000; i++) {
  q.push({ index: i });
}

q.resume();

When cb is called there can be RangeError's
I don't know enough to figure out why though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions