Hierarchy

  • SemaphoreService

Constructors

Methods

Constructors

Methods

  • Returns true if the lock is aquired

    Parameters

    • lockKey: string
    • maxAgeMs: number

    Returns Promise<boolean>

  • Check if the current host has the lock

    Parameters

    • lockKey: string

    Returns Promise<boolean>

  • Returns true if the lock is released

    Parameters

    • lockKey: string

    Returns Promise<boolean>

Generated using TypeDoc