allKeyed es-toolkit
Resolves an object of promises concurrently, returning an object with the same keys and resolved values.
Usage
allKeyed(tasks)
Use allKeyed when you want to run multiple promises in parallel and access results by name instead of positional indices. Similar to Promise.all, but accepts an object of promises and preserves keys in the result.
Based on the TC39 Promise.allKeyed proposal.
Plain values are also supported alongside promises.
It's also useful when you want to fetch multiple resources in parallel without worrying about array ordering.
Parameters
An object whose values are promises (or plain values) to resolve concurrently.
Returns
A promise that resolves to an object with the same keys and resolved values.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.