Mrs. Sari’s shopping fills the basket: Array.fromAsync and Promise.all both collect items that come later, but when does each item go in, and what happens…
The key idea
The source decides one by one or together
Try it in this playground
Run fromAsync over an async generator to the end The runners set off in turn, and the basket prints after the sum of all the times.
See an item that is in early wait its turn With an array of promises, the chilli is in at 100 ms but only goes into the basket after the egg.
Hand an async generator to Promise.all An instant TypeError, and nobody sets off.
Forget the await console.log(isi) prints Promise { <pending> }.