ixfx
    Preparing search index...

    Type Alias QueueMutableEvents<V>

    type QueueMutableEvents<V> = {
        dequeue: { finalData: readonly V[]; removed: V };
        enqueue: { added: readonly V[]; finalData: readonly V[] };
        removed: { finalData: readonly V[]; removed: readonly V[] };
    }

    Type Parameters

    • V
    Index

    Properties

    dequeue: { finalData: readonly V[]; removed: V }

    Single item dequeued. When dequeing the 'removed' event also fires

    enqueue: { added: readonly V[]; finalData: readonly V[] }

    Data has been added

    • added: data attempted to be added. Note: not all of it may have been accepted into queue
    • finalData: actual state of queue
    removed: { finalData: readonly V[]; removed: readonly V[] }

    One or more items removed due to dequeuing, clearing or removeWhere called