• Registers resource disposers that are triggered on process exit

    Parameters

    • Optional disposer: Disposer

      the disposer function

    Returns ((code?) => Promise<void>)

    a function that triggers all registered disposers and terminates the process

      • (code?): Promise<void>
      • Parameters

        • Optional code: "UNIT_TEST" | "ERROR"

        Returns Promise<void>

Generated using TypeDoc