Home > @imqueue/rpc > IMQLock > locked
IMQLock.locked() method
Returns true if the given key is locked, false otherwise.
Signature:
static locked(key: string): boolean;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
string |
key to check the lock state for |
Returns:
boolean
{boolean}