in-order

Asynchronously operate over an array in order

in-order

Asynchronously operate over an array in order

var serial = require("in-order")
 
serial([1, 2, 3], function (item, callback) {
    console.log(item)
    setTimeout(callback, 1000)
}, function (err) {
    console.log("all done")
})

npm install in-order

  • Raynos