Class AsyncifyHandler

Hold asynctify handler instance that runtime can use

Hierarchy

  • AsyncifyHandler

Constructors

Methods

  • Whether the wasm enables asynctify

    Returns boolean

    Whether the wasm enables asynctify

  • Warp an exported asynctify function so it can return promise

    Parameters

    • func: ((...args) => any)

      The input function

        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns ((...args) => Promise<any>)

    The wrapped async function

      • (...args): Promise<any>
      • Warp an exported asynctify function so it can return promise

        Parameters

        • Rest ...args: any[]

        Returns Promise<any>

        The wrapped async function

  • Wrap a function that can be used as import of the wasm asynctify layer

    Parameters

    • func: ((...args) => any)

      The input import function

        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns ((...args) => any)

    The wrapped function that can be registered to the system

      • (...args): any
      • Wrap a function that can be used as import of the wasm asynctify layer

        Parameters

        • Rest ...args: any[]

        Returns any

        The wrapped function that can be registered to the system

Generated using TypeDoc