12 lines
186 B
JavaScript
12 lines
186 B
JavaScript
'use strict';
|
|
|
|
module.exports = function forever (fn, done) {
|
|
function next (err) {
|
|
if (err) {
|
|
return done(err);
|
|
}
|
|
fn(next);
|
|
}
|
|
next();
|
|
};
|