Class ProcessLocker

Hierarchy

  • ProcessLocker

Constructors

Methods

Constructors

Methods

  • Parameters

    • id: string
    • ttl: number = 0

      optional defines when the times automatically unlocks.

    • timeout: number = 0

      if after timeout seconds the lock isn't acquired, it throws an error.

    Returns Promise<ProcessLock>

Generated using TypeDoc