lifecycle-utils
    Preparing search index...

    Type Alias AsyncQueueOptions<T>

    type AsyncQueueOptions<T> = {
        compactAt?: number;
        parent?: AsyncQueue<T>;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    compactAt?: number

    Minimum number of consumed entries before the internal array can be compacted.

    Compaction only occurs when at least half of the backing array has been consumed.

    Defaults to 4096.

    parent?: AsyncQueue<T>

    A parent queue to also send requests to when the current queue is empty.

    When set, requests will also be registered with each queue in the parent chain. The first queue to provide an item satisfies the request.

    When pushing to the queue, the item will be pushed to the current queue unless forwardPushesToParent is set to true.