MCPcopy Index your code
hub / github.com/mike-marcacci/node-redlock / Lock

Function Lock

redlock.js:92–99  ·  view source on GitHub ↗
(redlock, resource, value, expiration, attempts, attemptsRemaining)

Source from the content-addressed store, hash-verified

90// convenience methods `unlock` and `extend` which perform the associated Redlock method on
91// itself.
92function Lock(redlock, resource, value, expiration, attempts, attemptsRemaining) {
93 this.redlock = redlock;
94 this.resource = resource;
95 this.value = value;
96 this.expiration = expiration;
97 this.attempts = attempts;
98 this.attemptsRemaining = attemptsRemaining;
99}
100
101Lock.prototype.unlock = function unlock(callback) {
102 return this.redlock.unlock(this, callback);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected