ixfx
    Preparing search index...

    Type Alias QueueOpts<V>

    Queue options.

    const q = Queues.mutable({capacity: 5, discardPolicy: `newer`});
    
    type QueueOpts<V> = {
        capacity?: number;
        discardPolicy?: QueueDiscardPolicy;
        eq?: IsEqual<V>;
    }

    Type Parameters

    • V
    Index

    Properties

    capacity?: number

    Capcity limit

    discardPolicy?: QueueDiscardPolicy

    Default is additions, meaning new items are discarded.

    older: Removes items front of the queue (ie older items are discarded)

    newer: Remove from rear of queue to make space for new items (ie newer items are discarded)

    additions: Only adds new items that there are room for (ie. brand new items are discarded)

    eq?: IsEqual<V>