A PromiseQueue
ready to have new Promise
s 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 Promise
s in
the queue.
The reason to reject queued Promise
s with.
The number of settled Promise
s.
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 Promise
s in
the queue.
The value to resolve queued Promise
s with.
The number of settled Promise
s.
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
Promise
s. Supports pushing single elements onto the queue and settling one or all elements in the queue. Implemented usingList
.