Interface: DistributedLock
A handler for a distributed lock that can be released.
Methods
isReleased
▸ isReleased(): boolean
Whether the lock has been released.
Returns
boolean
True if the lock has been released.
observeRelease
▸ observeRelease(): Observable
<void
>
Observes when the lock is released (It may be released due to a connection issue)
Returns
Observable
<void
>
An observable that emits when the lock is released.
release
▸ release(): void
Releases the lock.
Returns
void