Async generators
Widely available
Async generator functions (async function*
) create iterators that return multiple promises, one after another, on-demand.
Compatibility
- Chrome 63 Released on 2017-12-06
- Chrome Android 63 Released on 2017-12-05
- Edge 79 Released on 2020-01-15
- Firefox 55 Released on 2017-08-08
- Firefox for Android 55 Released on 2017-08-08
- Safari 12 Released on 2018-09-17
- Safari on iOS 12 Released on 2018-09-17
MDN docs
Specifications
- ECMAScript Language Specification, from TC39 (Ecma International).
- ECMAScript Language Specification, from TC39 (Ecma International).
BCD data
- javascript.builtins.AsyncGenerator
- javascript.builtins.AsyncGenerator.next
- javascript.builtins.AsyncGenerator.return
- javascript.builtins.AsyncGenerator.throw
- javascript.builtins.AsyncGeneratorFunction
- javascript.builtins.AsyncGeneratorFunction.AsyncGeneratorFunction
- javascript.functions.method_definitions.async_generator_methods
- javascript.operators.async_generator_function
- javascript.statements.async_generator_function