Documentation
    Preparing search index...

    Function prepareAsyncContext

    • Wraps the given asynchronous function in a new function that will ignore any outcome of the context as it resolves.

      This can be useful when providing asynchonous event handler to .addEventlistener(), which only expects synchronous functions.

      Parameters

      Returns (...args: unknown[]) => void

      A function returning nothing.

        • (...args: unknown[]): void
        • Parameters

          • ...args: unknown[]

            The arguments that our new function was called with.

          Returns void