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
.