Class LocalLockStore

Lock Store API

Implements

Constructors

Properties

Methods

Constructors

Properties

storage: IStorage<{
    eid: string;
    id: string;
}>

Type declaration

  • eid: string
  • id: string
store: LocalStore

Methods

  • Try to acquire a lock.

    Parameters

    • id: string

      Id of lock.

    • eid: string

      Execution id of lock.

    Returns Promise<boolean>

    A boolean indicating whether or not the lock was acquired.