Represents a Locker object with methods for executing actions within a lock.

interface LockerObject {
    DoLocked: ((lockKey: string, action: (() => void), parameters: LockerParameters) => void);
}

Properties

Properties

DoLocked: ((lockKey: string, action: (() => void), parameters: LockerParameters) => void)

Executes a specified action within a lock context.

Type declaration

    • (lockKey, action, parameters): void
    • Parameters

      • lockKey: string

        The unique key representing the lock.

      • action: (() => void)

        The JavaScript function to execute within the lock.

          • (): void
          • Returns void

      • parameters: LockerParameters

        Additional parameters for the lock, such as retry timeout.

      Returns void