Skip to content

forEach not calling callback on completion? #2

@apemsel

Description

@apemsel

Might be a stupid question, but "finished" is never displayed in the following example

var async = require("async");
var sys = require("sys");

var a = ["foo","bar","baz"];

var f = function(arg) {
    sys.log(arg);
}

async.forEach(a, f, function(err) {
    sys.log("finished");
});

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