Represents a long-running process that executes a given function at a specified interval.

Constructors

Properties

Methods

Constructors

  • Constructs a new instance of the LongRunningProcess class.

    Parameters

    • config: ProcessConfig

      The configuration object for the process.

    • interval: number

      The interval at which the process should run.

    Returns default

    None

Properties

logger: default

A logger object used for logging messages, errors, and other information.

publisher: default

The publisher of the content.

timeout: Timeout

A reference to the NodeJS.Timeout object representing the interval timer.

Methods

  • Executes the provided execution function at a specified interval.

    Parameters

    • executionFunc: any

      The function to execute.

    Returns Promise<void>

    None