Methods
(async) acquire(key) → {boolean|void}
Parameters:
Name | Type | Description |
---|---|---|
key |
string |
Returns:
- Type
- boolean | void
(async) release(key)
release a lock
Parameters:
Name | Type | Description |
---|---|---|
key |
string |
(async) tryAcquire(key) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string |
Returns:
- Type
- boolean