Detects whether the passed value is an async function type, either an
async arrow function expression or an async non-arrow function expression
or an async function statement.
It does not detect an async generator function since the latter is not
an async function itself but the factory function of an async generator.
Async functions do return promises but do not return async generators.
Detects whether the passed
valueis an async function type, either an async arrow function expression or an async non-arrow function expression or an async function statement. It does not detect an async generator function since the latter is not an async function itself but the factory function of an async generator. Async functions do return promises but do not return async generators.