Array.fromAsync: Async Iterables to Arrays (With Live Race Demo)
Array.fromAsync turns any async iterable — an async generator, a stream, a paginated API, an OpenAI/Anthropic streaming response — into an array with a single await. But it is not a drop-in Promise.all: it awaits each value sequentially and lazily, which is exactly right for rate-limited APIs and exactly wrong for 100 independent calls. This guide has a live race demo so you can watch sequential vs parallel fire in real time, plus AbortController cancellation, bounded-concurrency batching, TypeScript typing, and runtime support across Node 22, Bun, Deno, Vercel Edge, and Cloudflare Workers.











