Promise.prototype.all Settled

GPTKB entity

Statements (37)
Predicate Object
gptkbp:instance_of gptkb:Mathematics
gptkbp:array_elements Each element is an object with 'status' and 'value' or 'reason'.
gptkbp:callback_function Can be used to process results after all promises settle.
gptkbp:callback_structure [{status: 'fulfilled', value: ...}, {status: 'rejected', reason: ...}]
gptkbp:chaining Can be chained with .then() and .catch().
gptkbp:compatibility Supported in modern browsers.
gptkbp:data_return A promise that resolves to an array of objects.
Promise.
gptkbp:description Returns a promise that resolves after all of the given promises have either resolved or rejected.
gptkbp:error_handling Does not short-circuit on rejection.
Useful for aggregating results without failing fast.
gptkbp:error_propagation Errors in input promises do not propagate.
gptkbp:es6_feature Part of ECMAScript 2015 (ES6).
gptkbp:example Promise.all Settled([promise1, promise2]).then(results => {...});
gptkbp:formulation Promise.all Settled(iterable).
https://www.w3.org/2000/01/rdf-schema#label Promise.prototype.all Settled
gptkbp:input_output An array of objects that each describe the outcome of each promise.
An iterable of Promise objects.
gptkbp:method_type Static method.
gptkbp:performance May have performance implications with many promises.
gptkbp:polyfill Can be polyfilled for older environments.
gptkbp:promise_resolution Resolves when all input promises have settled.
gptkbp:promise_state Does not affect the state of the input promises.
gptkbp:real-world_use Commonly used in API calls.
gptkbp:reason_property Contains the reason if rejected.
gptkbp:related_method Promise.all.
Promise.any.
Promise.race.
gptkbp:return_value An array of results.
gptkbp:status Can be 'fulfilled' or 'rejected'.
gptkbp:status_property Indicates whether the promise was fulfilled or rejected.
gptkbp:use_case To handle multiple promises and their results.
gptkbp:use_in_async_functions Can be used with async/await.
gptkbp:use_in_ui Can be used to manage multiple asynchronous operations in UI.
gptkbp:value_property Contains the value if fulfilled.
gptkbp:bfsParent gptkb:ECMAScript_2021
gptkbp:bfsLayer 6