Type Alias PromiseQueueItem<T>

PromiseQueueItem: {
    original: () => MaybePromise<T>;
    wrapper: DeferredPromise<T>;
}

An individual item in a PromiseQueue instance.

Type Parameters

  • T = void

Type declaration

  • original: () => MaybePromise<T>

    The original queue item that was added.

  • wrapper: DeferredPromise<T>

    A DeferredPromise instance with a promise that is resolved once this queue item has met its turn and has finished executing.