annotations-design-patterns
    Preparing search index...

    Interface KeyedLockOptions<This, Args>

    interface KeyedLockOptions<This, Args extends readonly unknown[]> {
        key: (context: KeyedLockKeyContext<This, Args>) => PropertyKey;
        maxQueue?: number;
    }

    Type Parameters

    • This
    • Args extends readonly unknown[]
    Index
    key: (context: KeyedLockKeyContext<This, Args>) => PropertyKey

    Resolves the mutually exclusive partition for this invocation.

    maxQueue?: number

    Maximum waiting calls per key. The active holder is not counted.