Value to be checked
True if the value is an AsyncGeneratorFunction, false otherwise
This function checks if the provided value is an AsyncGeneratorFunction, which is a special type of function
that returns an AsyncGenerator and can be used with the await
keyword. Note that this function does not
check if the function is a generator or an async function. And when using TypeScript and targetting earlier
versions of JavaScript, the type of the function may NOT be AsyncGeneratorFunction and instead be a regular function.
Checks if the provided value is an AsyncGeneratorFunction