lifecycle-utils
    Preparing search index...

    Function acquireLock

    • Acquire an exclusive lock for the given scope.

      An exclusive lock prevents any other exclusive or shared locks from being held at the same time. Lock requests are acquired in the order they are made; consecutive shared lock requests are acquired together.

      Type Parameters

      • const Scope extends readonly any[]

      Parameters

      Returns Promise<Lock<Scope>>