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)

isEmpty?: boolean

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