annotations-design-patterns
    Preparing search index...

    Interface OverlapOptions<This, Args>

    interface OverlapOptions<This, Args extends readonly unknown[]> {
        mode: OverlapMode;
        key: (context: OverlapKeyContext<This, Args>) => PropertyKey;
        maxQueue?: number;
        cancelWhenUnused?: boolean;
    }

    Type Parameters

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

    Returns the state partition used to coordinate overlapping calls.

    maxQueue?: number

    Maximum waiting calls per key. The active call does not count toward it.

    cancelWhenUnused?: boolean

    Only in share mode: abort cooperatively after the last consumer withdraws.