Async iterators and the for await..of loop
Widely availableAsynchronous iterator objects, such as those returned by promises or generator functions, are iterable with the for await .. of
loop.
Asynchronous iterator objects, such as those returned by promises or generator functions, are iterable with the for await .. of
loop.