Type Alias ToArrayOptions<V>

ToArrayOptions<V>: {
    fillValue: V;
    limit: number;
    maximumWait: Interval;
    underThreshold: "partial" | "throw" | "fill";
}

Type Parameters

  • V

Type declaration

  • fillValue: V

    Value to fill empty slots with if underThreshold = 'fill'.

  • limit: number

    Number of items to read

  • maximumWait: Interval

    Maximim time to wait for limit to be reached. 10s by default.

  • underThreshold: "partial" | "throw" | "fill"

    Behaviour if threshold is not reached. partial: return partial results throw: throw an error fill: fill remaining array slots with fillValue