CartoDB-SQL-API/batch/util/forever.js

12 lines
184 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function forever(fn, done) {
function next(err) {
if (err) {
return done(err);
}
fn(next);
}
next();
};