Decrements the lock count on a MUMPS global.
jsm.unlock(global, subscripts, callback);
Arguments
global
The MUMPS global name to be unlocked.
subscripts
An ECMAScript array indicating the subscript level at which to unlock global
.
callback
The callback to be called when the lock is released or the attempt fails. Per Node.js conventions, this callback function takes two arguments, err and data.
Example
This example will unlock ^ACCOUNTS("bob")
const jsmumps = require('jsmumps');
const jsm = new jsmumps.JSMumps();
jsm.unlock('ACCOUNTS', ['bob'], (err, data) => {
if(!err) {
console.log('Lock released successfully!');
}
});