You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-15 23:55:38 +03:00
Remove async dependency
This commit is contained in:
@@ -116,5 +116,14 @@ module.exports = {
|
||||
var mochaListener = process.listeners('uncaughtException').pop();
|
||||
process.removeListener('uncaughtException', mochaListener);
|
||||
return mochaListener;
|
||||
},
|
||||
callFuncAfter: function (func, max) {
|
||||
var i = 0;
|
||||
return function () {
|
||||
i++;
|
||||
if (i === max) {
|
||||
func();
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user