Promise
-
Promise.all vs. Promise.allSettledDEV/Javascript 2021. 6. 8. 15:17
From ECMAScript 2022 Language Specification, The allSettled function returns a promise that is fulfilled with an array of promise state snapshots, but only after all the original promises have settled, i.e. become either fulfilled or rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm. https://tc39.es/ecma262/multipage/control-abstraction-objects.html#..
-
Promise Fulfilled vs. ResolvedDEV/Javascript 2021. 6. 8. 10:50
According to the MDN Promise page, A Promise is in one of these states: * pending: initial state, neither fulfilled nor rejected. * fulfilled: meaning that the operation was completed successfully. * rejected: meaning that the operation failed. According to ECMAScript 2015 Language specification, When the Promise function is called with argument executor the following steps are taken: ... The ex..