The AsyncGeneratorFunction()
constructor creates AsyncGeneratorFunction
objects.
Note that AsyncGeneratorFunction
is not a global object. It could be obtained by evaluating the following code.
const AsyncGeneratorFunction = async function* () {}.constructor;
The AsyncGeneratorFunction()
constructor is not intended to be used directly, and all caveats mentioned in the Function()
description apply to AsyncGeneratorFunction()
.