features/extra/cleanup.js
function(list, iter, callback) {
    var item = list.shift();
    iter(item, function(err) {
      if (err) return callback(err);
      else if (list.length) {
        eachSeries(list, iter, callback);
      } else {
        return callback();
      }
    });
  }
function(list, iter, callback) {
    var item = list.shift();
    iter(item, function(err) {
      if (err) return callback(err);
      else if (list.length) {
        eachSeries(list, iter, callback);
      } else {
        return callback();
      }
    });
  }
function ( list , iter , callback ) { var item = list . shift ( ) ; iter ( item , function ( err ) { if ( err ) return callback ( err ) ; else if ( list . length ) { eachSeries ( list , iter , callback ) ; } else { return callback ( ) ; } } ) ; }
Run bucket cleanup serially.
Run bucket cleanup serially .