workflow-4-node
Version:
Workflow 4 Node is a .NET Workflow Foundation like framework for Node.js. The goal is to reach feature equivalence and beyond.
18 lines (13 loc) • 523 B
JavaScript
;
var KeepAlive = require("./keepAlive");
var util = require("util");
var Bluebird = require("bluebird");
function KeepLockAlive(persistence, lockInfo, inLockTimeout, renewPeriod) {
var self = this;
KeepAlive.call(self, function () {
if (lockInfo && lockInfo.id) return persistence.renewLock(lockInfo.id, inLockTimeout);else return Bluebird.resolve(0);
}, renewPeriod);
}
util.inherits(KeepLockAlive, KeepAlive);
module.exports = KeepLockAlive;
//# sourceMappingURL=keepLockAlive.js.map