Class Process

Hierarchy

  • Process

Constructors

Properties

bootTime: number
initialized: boolean
initializers: Initializers
loadInitializers: (() => Promise<void>)[]
running: boolean
shuttingDown: boolean
startCount: number
startInitializers: (() => Promise<void>)[]
started: boolean
stopInitializers: (() => Promise<void>)[]
stopReasons?: string[]
stopped: boolean

Methods

  • Parameters

    • errors: ErrnoException | ErrnoException[] = []
    • type: string

    Returns Promise<void>

  • Type Parameters

    • T

    Parameters

    • collection: {
          [rank: number]: T[];
      }
      • [rank: number]: T[]

    Returns T[]

  • Register listeners for process signals and uncaught exceptions & rejections. Try to gracefully shut down when signaled to do so

    Parameters

    • stopCallback: ((exitCode?: number) => void) = ...
        • (exitCode?: number): void
        • Parameters

          • Optional exitCode: number

          Returns void

    Returns void

  • Stop the Actionhero Process

    Parameters

    • stopReasons: string | string[] = []

    Returns Promise<void>

Generated using TypeDoc