You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an exception is thrown in the final callback of an auto, the final callback ends up being called multiple times. In this example, "This should only run once" will be logged twice.
async.auto({
func1: function(callback) {
callback(null);
},
func2: ['func1',
function(callback) {
callback(null);
}
]
},
// Final callback. This should only run once...
function(err) {
console.log("***** This should only run once *****"); //...but somehow this is called twice
throw new Error("Something goes wrong");
}
);
The text was updated successfully, but these errors were encountered:
th3james
added a commit
to th3james/async
that referenced
this issue
Dec 2, 2013
If an exception is thrown in the final callback of an auto, the final callback ends up being called multiple times. In this example, "This should only run once" will be logged twice.
The text was updated successfully, but these errors were encountered: