The Settled has either a SettledLeft or a SettledRight and is based on the JavaScript Promise.allSettled() API only objective is to keep the possible failures of a task separated from the expected completion and extend PromiseSettledResult
Represents the type of value contained in a sucesfulll (fulfilled) completion.
Remarks
The interface Settled is the equivalent of
PromiseSettledResult with aditional properties to make it
isometric and properties adding Cardinal and Ordinal indexes.
The index measure the number of elements in a set, giving also its order or position.
The transformStep measure the order of the steps involved in sucessive completions. first second third.
Those two properties are ortogonales in the sens that sucessive
elements have an index always the same and each completion steps
have a same transformStep count they are ortogonal in that aspect
/* The null value of the transformStep and the index is -1 */ /* When value is -1 the folowing properties a not enumerated */ transformStep: number; index: number;
/* Folowing properties a not enumerated (enumerable: false) */ currentRejection: null; fulfilled: T; rejected: null; reason?: undefined; };
/* the currentRejection can be undefined but the property itself can not be undefined */ currentRejection: true | false | undefined;
/* The null value of the transformStep and the index is -1 */ /* When value is -1 the folowing properties a not enumerated */ transformStep: number; index: number;
/* Folowing properties a not enumerated (enumerable: false) */ rejected: any; fulfilled: null; value?: undefined; };
The Settled has either a SettledLeft or a SettledRight and is based on the JavaScript Promise.allSettled() API only objective is to keep the possible failures of a task separated from the expected completion and extend PromiseSettledResult
See
SettledLeft and SettledRight.
Type Param
Represents the type of value contained in a sucesfulll (fulfilled) completion.
Remarks
The interface Settled is the equivalent of
PromiseSettledResult with aditional properties to make it
isometric and properties adding Cardinal and Ordinal indexes.
The
index
measure the number of elements in a set, giving also its order or position.The
transformStep
measure the order of the steps involved in sucessive completions. first second third.Those two properties are ortogonales in the sens that sucessive elements have an index always the same and each completion steps have a same
transformStep
count they are ortogonal in that aspect