Web features explorer

Async iterators and the for await..of loop

Widely available since 2022-07-15
Tags: javascript Groups: JavaScript > Iterators

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

Learning resources on MDN

Browser support