🎮 Array.fromAsync in action

An async generator drips out items one at a time. Try three ways to collect them all into a plain array — only one requires zero boilerplate.

1 Configure the source

Each call to next() on the async generator takes this long, simulating a real async source (network page, database cursor, stream).

2 Pick an approach
3 Watch it collect
Pick an approach above.
result →
time →
4 The code running