-
Notifications
You must be signed in to change notification settings - Fork 9
NoLock
Mykhailo Stadnyk edited this page Nov 23, 2020
·
2 revisions
Globals / NoLock
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
: (channel: string) => void): void
Name | Type |
---|---|
handler |
(channel: string) => void |
Returns: void
▸ release(): Promise<void>
Implementation of AnyLock
Never releases, because it's no lock
Returns: Promise<void>