Function useFinally

  • Creates a new function that injects the original function and calls its finally method after the function completes execution.

    Type Parameters

    • AF extends AsyncFunc

    Parameters

    • injectableFn: AF

      The original function to inject.

    • handler: (() => any)

      The handler function to run after the function completes execution.

        • (): any
        • Returns any

    Returns void

    • No return value.

Generated using TypeDoc