fynjs API
    Preparing search index...

    Function withPackLock

    • Serialize updates to the shared backup and its metadata.

      The lock records its owner's pid. A lock whose owner is gone is taken over, and the action gets the dead owner's pid so it can repair what that owner left half done.

      Type Parameters

      • T

      Parameters

      • saveFile: string
      • action: (stalePid?: number) => Promise<T>

      Returns Promise<T>