lib/seed-forge.js
function list(type, num, fn) {
  var records = [];
  var bail = false;

  var created = function(err, record) {
    if (bail) return;

    if (err) {
      bail = true;
      return fn(err);
    }

    records.push(record);

    if (records.length === num) {
      fn(null, records);
    }
  };

  for (var i = 0; i < num; i++) {
    factory(type, created);
  }
}
function list(type, num, fn) {
  var records = [];
  var bail = false;

  var created = function(err, record) {
    if (bail) return;

    if (err) {
      bail = true;
      return fn(err);
    }

    records.push(record);

    if (records.length === num) {
      fn(null, records);
    }
  };

  for (var i = 0; i < num; i++) {
    factory(type, created);
  }
}
Create multiple records at once.

@param {String} Factory name
@param {Number} The number of record to be created
@param {Function} Callback
@api public