-
Notifications
You must be signed in to change notification settings - Fork 10
NoLock
Mykhailo Stadnyk edited this page Jan 2, 2020
·
2 revisions
Implements no lock to be used with multi-listener approach
- NoLock
▸ acquire(): Promise‹boolean›
Implementation of AnyLock
Always acquires, because it's no lock
Returns: Promise‹boolean›
▸ destroy(): Promise‹void›
Implementation of AnyLock
Safely destroys this no lock
Returns: Promise‹void›
▸ init(): Promise‹void›
Implementation of AnyLock
Init no lock
Returns: Promise‹void›
▸ isAcquired(): boolean
Implementation of AnyLock
Always acquired, because it's no lock
Returns: boolean
▸ onRelease(handler: function): void
Parameters:
▪ handler: function
▸ (channel: string): void
Parameters:
| Name | Type |
|---|---|
channel |
string |
Returns: void
▸ release(): Promise‹void›
Implementation of AnyLock
Never releases, because it's no lock
Returns: Promise‹void›