first commit

This commit is contained in:
2023-05-19 00:42:48 +08:00
commit 53de9c6c51
243 changed files with 39485 additions and 0 deletions

7
batch/util/debug.js Normal file
View File

@@ -0,0 +1,7 @@
'use strict';
var debug = require('debug');
module.exports = function batchDebug (ns) {
return debug(['batch', ns].join(':'));
};

11
batch/util/forever.js Normal file
View File

@@ -0,0 +1,11 @@
'use strict';
module.exports = function forever(fn, done) {
function next(err) {
if (err) {
return done(err);
}
fn(next);
}
next();
};