Cotal TypeScript packages
    Preparing search index...

    Interface AcquireOptions

    interface AcquireOptions {
        label?: string;
        onTimeout?: (owner: LockOwner) => Error;
        onWait?: () => void;
        pollMs?: number;
        waitMs?: number;
    }
    Index
    label?: string

    Naming the holder in a contention error.

    onTimeout?: (owner: LockOwner) => Error

    The loud error thrown when the wait bound elapses with the lock still live-held.

    onWait?: () => void

    Called once before the first wait on a live holder or reclaimer.

    pollMs?: number

    Poll interval while waiting (default 200).

    waitMs?: number

    Max ms to wait on a live holder before failing loud (default 300000).