A PromiseQueue ready to have new Promises queued up.
Time complexity: O(1)
A Promise that will be settled when its turn comes and
#resolveOne or #rejectOne is called, or when #resolveAll
or #rejectAll are called.
Time complexity: O(n), where n is the number of unsettled Promises in
the queue.
The reason to reject queued Promises with.
The number of settled Promises.
Time complexity: O(1)
The reason to reject a queued Promise with.
True if a Promise was dequeued and rejected.
Time complexity: O(n), where n is the number of unsettled Promises in
the queue.
The value to resolve queued Promises with.
The number of settled Promises.
Time complexity: O(1)
The value to resolve a queued Promise with.
True if a Promise was dequeued and resolved.
Generated using TypeDoc
FIFO queue for
Promises. Supports pushing single elements onto the queue and settling one or all elements in the queue. Implemented usingList.