-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
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
Labels
No labels