Skip to content

I guess I found one bug in async.whilst #860

Closed
@rodrigorodriguescosta

Description

@rodrigorodriguescosta

Folks, when I used the async.whilst the function where I inserted the code restarted wihout reason when I used a "loop" so long, example

   this.myfunction= function (number, callback) {
        var count=0; 
        async.whilst (
        function () {             
            return count< 5000;
        },
        function (asyncCallback) {              
                count++;
                asyncCallback();
            });

        },
        function (err) {
            callback('something');
        }
      );
    };

When I changed to async.until it worked!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions