Function onExit

  • Called when the process is exiting, whether via signal, explicit exit, or running out of stuff to do.

    If the global process object is not suitable for instrumentation, then this will be a no-op.

    Returns a function that may be used to unload signal-exit.

    Parameters

    • cb: Handler
    • Optional opts: {
          alwaysLast?: boolean;
      }
      • Optional alwaysLast?: boolean

    Returns (() => void)

      • (): void
      • Returns void

Generated using TypeDoc