@squidcloud/client
    Preparing search index...

    Interface DistributedLock

    A handler for a distributed lock that can be released.

    interface DistributedLock {
        isReleased(): boolean;
        observeRelease(): Observable<void>;
        release(): void;
    }
    Index

    Methods

    • Whether the lock has been released.

      Returns boolean

      True if the lock has been released.

    • 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.

    • Releases the lock.

      Returns void