Interface ChainedPromiseQueueConfig<T>

interface ChainedPromiseQueueConfig<T> {
    onEmpty?: (() => void);
    isEmpty?: boolean;
}

Type Parameters

  • T

Properties

Properties

onEmpty?: (() => void)

provide a callback whenever the queue of promises goes empty (each promise element is fulfilled)

Type declaration

    • (): void
    • provide a callback whenever the queue of promises goes empty (each promise element is fulfilled)

      Returns void

isEmpty?: boolean

specify if onEmpty should be immediately called when the queue is first created. defaults to false

Generated using TypeDoc