tar
    Preparing search index...

    Class PathReservations

    Gives each task the exclusive use of its paths, and the shared use of their parent directories. A task starts when each task before it that uses one of its paths, or a directory above or below one, is done.

    Paths that differ only in case or in Unicode form are the same path, because they can be the same file on disk.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Call fn when it is first in line for each of its paths. The paths are free again when the promise of fn settles. Returns a promise with the result of fn.

      Parameters

      • paths: string[]
      • fn: () => Promise<void>

      Returns Promise<void>