tvmjs
    Preparing search index...

    Class AsyncifyHandler

    Hold asynctify handler instance that runtime can use

    Index

    Constructors

    Methods

    • Whether the wasm enables asynctify

      Returns boolean

      Whether the wasm enables asynctify

    • Get the current asynctify state

      Returns boolean

      The current asynctify state

    • Warp an exported asynctify function so it can return promise

      Parameters

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

        The input function

      Returns (...args: any[]) => Promise<any>

      The wrapped async function

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

      Parameters

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

        The input import function

      Returns (...args: any[]) => any

      The wrapped function that can be registered to the system