Cotal TypeScript packages
    Preparing search index...

    Function acquireLockAsync

    • acquireLock for callers on a live event loop: every attempt is the same non-blocking try-acquire/reclaim step, and the wait between attempts is an awaited timer, so timers, RPCs and cancellation keep running while a live holder or a live reclaimer is outstanding. opts.waitMs is one deadline for the whole wait, whichever of the two is in the way.

      Parameters

      Returns Promise<HeldLock>