UNB/ CS/ David Bremner/ teaching/ cs2613/ books/ mdn/ Reference/ Global Objects/ AsyncGeneratorFunction

The AsyncGeneratorFunction object provides methods for async generator functions. 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:

const AsyncGeneratorFunction = async function* () {}.constructor;

AsyncGeneratorFunction is a subclass of Function.

Constructor

Instance properties

Also inherits instance properties from its parent Function.

These properties are defined on AsyncGeneratorFunction.prototype and shared by all AsyncGeneratorFunction instances.

Instance methods

Inherits instance methods from its parent Function.

Specifications

Browser compatibility

See also