Skip to content

async.forever ... isn't ?! #437

@dennyjohn

Description

@dennyjohn

I just did a quick test to confirm forever's behavior and it seems its not really forever !

var async = require('async');

var a = 1;

function afunc( cb ){
console.log(a++);
cb(null);
}

async.forever( afunc , function( err ){
console.log( err.msg );
} );

run it and ...

:
:
8966
8967
8968
8969
8970
8971

RangeError: Maximum call stack size exceeded

Looking at the forever function I dont see how it could ever be considered forever. I'm not good enough to fix this but if anyone did take this up, please consider adding a flag that would prevent errors from being terminal and allow continuation after calling callback.

Thanks

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