locker lock servernode-locker - full-featured client for
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 = ;
- New connection
var locker = port host;
- Locking resource
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)