Interface RateLimitedSpillCallback<ItemType>

A callback function that is called when the rate-limited queue spills.

Typeparam

ItemType The type of items in the queue.

Param

An array of items that were spilled from the queue.

Returns

A Promise that resolves when the callback has completed.

Type Parameters

  • ItemType = any

Hierarchy

  • RateLimitedSpillCallback
  • A callback function that is called when the rate-limited queue spills.

    Parameters

    • items: ItemType[]

      An array of items that were spilled from the queue.

    Returns Promise<void>

    A Promise that resolves when the callback has completed.

    Typeparam

    ItemType The type of items in the queue.