Namespace: angelFall

async.angelFall

`angelFall` is like `waterfall` and inject callback to last argument of next task.
Source:

Example

var order = [];
var tasks = [
  function(next) {
    setTimeout(function() {
      order.push(1);
      next(null, 1);
    }, 10);
  },
  function(arg1, empty, next) {
    setTimeout(function() {
      order.push(2);
      next(null, 1, 2);
    }, 30);
  },
  function(next) {
    setTimeout(function() {
      order.push(3);
      next(null, 3);
    }, 20);
  },
  function(arg1, empty1, empty2, empty3, next) {
    setTimeout(function() {
      order.push(4);
      next(null, 1, 2, 3, 4);
    }, 40);
  }
];
async.angelFall(tasks, function(err, arg1, arg2, arg3, arg4) {
  console.log(arg1, arg2, arg3, arg4); // 1 2 3 4
});