@petsel/es-type-detection - v1.0.0
    Preparing search index...

    Function isAsyncFunction

    • 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.

      Parameters

      • Optionalvalue: any

        An optionally passed value of any type.

      Returns value is AsyncFunction

      A boolean value which indicates whether the tested value is an async function.