@ac-essentials/misc-util
    Preparing search index...

    Function noThrowAsync

    • Wraps a function to catch and re-throw any errors it throws or promise rejections out of the current execution flow.

      This prevents uncaught exceptions / unhandled rejections from disrupting the current execution flow.

      Type Parameters

      • A extends unknown[]
      • R
      • T

      Parameters

      Returns AsyncCallable<A, undefined | R, T>

      A new async function that wraps the original function and catches any errors thrown or promise rejections.