Full-featured client for locker lock server with timeouts support
Allows to lock common resources across servers with sub-second precision in node.js in async way.
Check out locker server page for server installation instructions.
npm install locker
var Locker =locker = 4545 "127.0.0.1";locker;locker;// name wait max callbacklocker;
var Locker = ;
var locker = port host;
callback you will be exclusive owner of resource with name
identifier if there is no
After doing exclusive stuff you should release lock by calling
reset— connection was reset and all locks were gone.
error- error occurred on some of connection locks (timeout exceed for waiting or execution time)