Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileSystemLockingImpl

Hierarchy

  • FileSystemLockingImpl

Implements

Index

Constructors

Methods

  • cleanupLocks(locks: Map<string, Mutex>): void
  • getLock(lockPath: string): Mutex
  • getLocks(): Map<string, Mutex>
  • initializeLocks(): Map<string, Mutex>
  • lockPath<T>(lockPath: string, transaction: ((lockPath: string) => T | Promise<T>), thisArg?: unknown): Promise<T>
  • Type Parameters

    • T

    Parameters

    • lockPath: string
    • transaction: ((lockPath: string) => T | Promise<T>)
        • (lockPath: string): T | Promise<T>
        • Parameters

          • lockPath: string

          Returns T | Promise<T>

    • Optional thisArg: unknown

    Returns Promise<T>

  • resolveLockPath(lockPath: string): string