Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for AsyncGeneratorFunction() constructor.
Developer library 6
JavaScript reference
mics - JSON ### Managing memory - WeakRef - FinalizationRegistry ### Control abstraction objects - Iterator - AsyncIterator - Promise - GeneratorFunction - AsyncGeneratorFunction - Generator - AsyncGenerator - AsyncFunction - DisposableStack - AsyncDisposableStack ### Reflection - AbstractModuleSource - Reflect - Proxy ### Internationalization - Intl - Intl.Collator - Intl.DateTimeFormat - Intl.DisplayNames -
Function
[`function`](/docs/Web/JavaScript/Reference/Statements/function) - [`function` expression](/docs/Web/JavaScript/Reference/Operators/function) - AsyncFunction - AsyncGeneratorFunction - GeneratorFunction - Functions
Function: prototype
[Generator functions](/docs/Web/JavaScript/Reference/Statements/function*) have a `prototype` property, but cannot be called with `new`: ```js async function* asyncGeneratorFunction() {} function* generatorFunction() {} ``` Instead, generator functions' `prototype` property is used when they are called _without_ `new`. The `prototype` property will become the returned [`Generator`](/docs/Web/JavaScript/Reference/Gl
GeneratorFunction
docs/Web/JavaScript/Reference/Statements/function*) - [`function*` expression](/docs/Web/JavaScript/Reference/Operators/function*) - Function - AsyncFunction - AsyncGeneratorFunction - Functions
GeneratorFunction.prototype.prototype
See also - [`function*`](/docs/Web/JavaScript/Reference/Statements/function*) - [`function*` expression](/docs/Web/JavaScript/Reference/Operators/function*) - AsyncGeneratorFunction - GeneratorFunction - [Inheritance and the prototype chain](/docs/Web/JavaScript/Guide/Inheritance_and_the_prototype_chain) - [Iterators and generators](/docs/Web/JavaScript/Guide/Iterators_and_generators)
AsyncGeneratorFunction
The **`AsyncGeneratorFunction`** object provides methods for [async generator functions](/docs/Web/JavaScript/Reference/Statements/async_function*). In JavaScript, every async generator function is actually an `AsyncGeneratorFunction` object. Note that `AsyncGeneratorFunction` is _not_ a global object. It can be obtained with the following code: ```js const AsyncGeneratorFunction = async function* () {}.constructor