The type of value the input promises resolve to.
Constructs every promise resolver.
If no promises
passed to constructor, then no promises to resolve will be added. This means that the
resulting promise won't be settled until either add, or reject method called.
Rest
...promises: (T | PromiseLike<T>)[]Promises to add to resolution initially.
Readonly
addAdds promise(s) to resolve.
Has no effect when the resulting promise already settled.
Can be called before the resulting promise fulfilled.
Calling without arguments causes the resulting promise to resolve.
Rest
...promises: (T | PromiseLike<T>)[]Promises to add to resolution.
Readonly
rejectReadonly
whenCreates a promise resolved when every added promise resolved, or rejected when any of them rejected.
The subsequent calls to this method return the same promise instance.
Resulting promise resolved to array of added promise resolutions.
Generated using TypeDoc
A resolver of every input promise that can be created later or not created at all.
Promises to resolve can be passed to constructor, or added later, but not after the resulting promise fulfilled.
Creates the resulting promise only on demand.
The methods of this object do not require
this
context and can be called as functions.