Function acquireLock

  • Acquire a lock for a given scope and key.

    Type Parameters

    • S = any

    • K extends string = string

    Parameters

    • scope: S
    • key: K
    • Optional acquireLockSignal: AbortSignal

    Returns Promise<Lock<S, K>>